Support Asciidoc preview
Provide capability to support Asciidoc preview
-
Anonymous commented
As a fourth option to those above, provide documentation and the API to allow others to provide an AsciiDoc rendering addon. Apologies if this is already available.
-
Anonymous commented
I could suggest that this be done in three complementary patterns:
* Render as text (Just show the content as a text .txt file)
* Native rendering to HTML
* Provide a raw content view (like GitHub) and delegate any rendering to a third party plugin (eg the Asciidoc Browser Plugin)Render as text: Treat the .adoc or .asciidoc extension as a text file and render accordingly as text
Native rendering: Natively render the asciidoc file with the extension .adoc, asciidoc to HTML in the same way that the AsciiDoc Browser plugin does using asciidoctor.js (though of course with security restrictions)
Raw content view: Allow the raw box content to be processed by the AsciiDoc Browser Plugin so that it may render the raw asciidoc content to HTML for viewing.