This project uses Asciidoctor.js to preview AsciiDoc as HTML inside the Chrome (or Chromium) web browser!
-
Install extension from Chrome Web Store
-
Check
Allow access to file URLs
inchrome://extensions
-
Open local or remote .ad, .adoc, .asc, .asciidoc file in Chrome
-
Enjoy!
Warning
|
Due to a Chromium bug the Allow access to file URLs is lost on extension update.
If preview of local files isn’t working, make sure to uncheck and recheck the Allow access to file URLs .
|
Loading your local copy of the extension on Chrome is super easy:
-
Check
Developer mode
inchrome://extensions
-
Click
Load unpacked extension…
and select the extensionapp
directory -
That’s all
To see your changes, click the Reload (Ctrl+R)
link in chrome://extensions
.
If you want to create a Pack extension
just make a zip
file of the extension app
directory.
The extension can be configured via an options page.
To open the options page, right-click the extension icon and choose Options on the menu. You can also go to chrome://extensions
and click the Options link.
The options page let you add custom Asciidoctor attributes or change the theme of the AsciiDoc HTML output.
It’s important to note that since the Chrome extension converts the document to embeddable HTML (header and footer disabled), the only TOC placement that work are preamble (if the document has a preamble) or manual placement.
= Title :toc: preamble
= Title :toc: :toc-placement!: Somewhere... toc::[]
You can also use preprocessor directives to fine-tune the content to put the TOC in the right place depending on the environment.
-
Asciidoctor 1.5.2
-
Support :max-width: attribute
-
Offline mode
-
.txt files extension (configurable)
-
Asciidoctor 1.5.0 !
-
New stylesheet with Open Source Fonts
-
Better print styles
-
Font Awesome 4.1
-
MathJax support
-
Allow custom Javascript and Stylesheet
-
Upgrade to Asciidoctor 1.5.0-preview.8
-
Activate includes!
-
Render selection
-
Match URLs that contain a query string
-
Add configuration option for specifying custom attributes
-
Allow to change the theme of AsciiDoc HTML output
-
Add highlight.js for syntax highlighting
-
Add context menu to send the "browser content" to the Asciidoctor Editor
Copyright © 2013 Guillaume Grossetie. Free use of this software is granted under the terms of the MIT License.
See the LICENSE file for details.