All Projects → clydeclements → AsciiDocQuickLook

clydeclements / AsciiDocQuickLook

Licence: MIT License
A QuickLook plugin to preview AsciiDoc files.

Programming Languages

c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to AsciiDocQuickLook

asciidoctor-htmlbook
Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook documents.
Stars: ✭ 31 (+29.17%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Epub3
📘 Asciidoctor EPUB3 is a set of Asciidoctor extensions for converting AsciiDoc to EPUB3 & KF8/MOBI
Stars: ✭ 166 (+591.67%)
Mutual labels:  asciidoc, asciidoctor
Infoq Mini Book
Template project for creating an InfoQ Mini-Book with Asciidoctor
Stars: ✭ 147 (+512.5%)
Mutual labels:  asciidoc, asciidoctor
eclipse-asciidoctor-editor
An eclipse editor for asciidoctor files
Stars: ✭ 45 (+87.5%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Intellij Plugin
AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
Stars: ✭ 250 (+941.67%)
Mutual labels:  asciidoc, asciidoctor
Atom Asciidoc Preview
⚛ AsciiDoc preview for the Atom editor.
Stars: ✭ 136 (+466.67%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Browser Extension
⚪️ An extension for web browsers that converts AsciiDoc files to HTML using Asciidoctor.js.
Stars: ✭ 152 (+533.33%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Pdf
📃 Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Stars: ✭ 868 (+3516.67%)
Mutual labels:  asciidoc, asciidoctor
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+879.17%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Web Pdf
Convert AsciiDoc documents to PDF using web technologies
Stars: ✭ 219 (+812.5%)
Mutual labels:  asciidoc, asciidoctor
Asciidocfx
Asciidoc Editor and Toolchain written with JavaFX 16 (Build PDF, Epub, Mobi and HTML books, documents and slides)
Stars: ✭ 1,533 (+6287.5%)
Mutual labels:  asciidoc, asciidoctor
qlZipInfo
MacOSX QuickLook Generator for zip, jar, tar, tar.gz (.tgz), tar.bz2 (.tbz2/.tbz), tar.Z. xar (.xar, .pkg), debian (.deb), RedHat Package Manager (.rpm), 7zip (.7z), xz, Microsoft cabinet (.cab), gzip (.gz), lha, BinHex 4.0 (.hqx), and Stuffit (.sit) archives, and ISO9660 images
Stars: ✭ 47 (+95.83%)
Mutual labels:  quicklook, quicklook-plugin
Kramdown Asciidoc
A kramdown extension for converting Markdown documents to AsciiDoc.
Stars: ✭ 97 (+304.17%)
Mutual labels:  asciidoc, asciidoctor
asciidoctor-rfc
AsciiRFC: an AsciiDoc/asciidoctor backend to produce RFC XML v3 (RFC 7991) and v2 (RFC 7749)
Stars: ✭ 14 (-41.67%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Html5s
Semantic HTML5 converter (backend) for Asciidoctor
Stars: ✭ 50 (+108.33%)
Mutual labels:  asciidoc, asciidoctor
Ebook Template
Template to create PDF, ePub and Kindle books with Asciidoctor
Stars: ✭ 150 (+525%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor.js
A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
Stars: ✭ 500 (+1983.33%)
Mutual labels:  asciidoc, asciidoctor
Asciidoc Kate
AsciiDoc/AsciiDoctor syntax highlighting plugin for Kate editor/KatePart
Stars: ✭ 5 (-79.17%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Reveal.js
🔮 A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
Stars: ✭ 219 (+812.5%)
Mutual labels:  asciidoc, asciidoctor
asciidoctor-katex
Asciidoctor extension for converting latexmath using KaTeX at build time
Stars: ✭ 16 (-33.33%)
Mutual labels:  asciidoc, asciidoctor

AsciiDoc Quick Look

Introduction

This is a Quick Look plug-in for AsciiDoc format files. It renders a preview of an AsciiDoc file selected in the Finder by using Asciidoctor.

Installation

  • By default this plug-in uses Asciidoctor to render the preview. Therefore, first install that program via your preferred method. For example, to install via the system gem command, use:

    sudo gem install asciidoctor
  • Download a zipped binary of this plug-in. Unzip and move AsciiDoc.qlgenerator into /Library/QuickLook. Note the plug-in will not work if installed to a user directory ~/Library/QuickLook due to restraints imposed by the sand-boxing of Quick Look plug-ins.

  • Lastly, open Terminal and run the command qlmanage -r to reset the Quick Look Server.

Customization

The preview of an AsciiDoc file is generated by converting it to HTML via Asciidoctor and displaying the resultant HTML. This process can be customized by setting a preference to override the converter:

defaults write ca.bluemist2.AsciiDocQuickLook AsciiDocConverter /path/to/my_converter

The last part of the above command must give the full path to an executable that accepts one argument, the name of the AsciiDoc file to be previewed, and writes the corresponding HTML format on standard output. For example, create a shell script called asciidoc_to_html with content similar to the following:

#!/bin/bash
export PATH=/usr/local/bin:$PATH
asciidoctor -b html5 -a nofooter -a icons=font -o - "$1"

Ensure the script is executable (use chmod +x asciidoc_to_html) and place it in your ~/bin folder (create the folder if it does not exist). Lastly, set the converter preference:

defaults write ca.bluemist2.AsciiDocQuickLook AsciiDocConverter ~/bin/asciidoc_to_html

To Do

  • A process should support sudden termination for the best user experience; see Terminating Processes. This plug-in works by launching an Asciidoctor process. Could the handling of this process be improved?

  • Consider using asciidoctor.js to generate previews. Examine QLSwift to see how it generates previews using JavaScript. This method would not require the Asciidoctor program to be installed (though it would require distribution of asciidoctor.js) and it would not need to launch a separate process.

Release History

  • 1.0 (2017-11-06): Initial release

License

Copyright © 2017 Clyde Clements

The AsciiDoc Quick Look plug-in is distributed under the MIT license. See the license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].