Asciidoctor does not share any code with AsciiDoc because of license incompatibility. Asciidoctor is MIT, AsciiDoc is GPLv2.Asciidoctor also takes a different approach that eliminates the need for several of the JavaScript files. Both asciidoc.js and toc.js are hacks that add features via JavaScript that AsciiDoc isn't able to add when processing the file. Since Asciidoctor builds an AST, it's able to generate output like the table of contents during rendering.
The Math JavaScript files have been rolled into MathJax, which Asciidoctor integrates with as of the next release (currently in HEAD).Asciidoctor uses several new JavaScript files, such as highlight.js and prettify, as you have observed.
The short answer is, no, Asciidoctor doesn't use any of the JavaScript files included in AsciiDoc.
-Dan--On Mon, Nov 18, 2013 at 4:23 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,
By default, asciidoc uses the following javascript files :
- asciidoc.js
- ASCIIMathML.js
- LaTeXMathML.js
- slidy.js
- toc.js (deprecated since asciidoc 8.5.1 and replaced by asciidoc-xhtml11.js
Do we use them with asciidoctor (or in a modified way) as I just see reference to highlight, prettify & mathjax javascript in html5.rb file ?
If you reply to this email, your message will be added to the discussion below:http://discuss.asciidoctor.org/Do-we-use-same-js-files-as-asciidoc-tp1008.htmlTo start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAMLDan Allen | http://google.com/profiles/dan.j.allen
http://discuss.asciidoctor.org/Do-we-use-same-js-files-as-asciidoc-tp1008p1074.htmlIf you reply to this email, your message will be added to the discussion below:
Free forum by Nabble | Edit this page |