Re: Do we use same js files as asciidoc ?
Posted by
mojavelinux on
Nov 24, 2013; 10:49pm
URL: https://discuss.asciidoctor.org/Do-we-use-same-js-files-as-asciidoc-tp1008p1074.html
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