Do we use same js files as asciidoc ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Do we use same js files as asciidoc ?

ch007m
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 ?

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Do we use same js files as asciidoc ?

LightGuardjp
Administrator
Others can further clarify my answer. 

Asciidoctor I believe uses a math JS or latex js file for displaying math functions in 0.1.4. 

Slidy would only be used in a back end for creating slidy decks. We don't need the other JavaScript libraries because we do the other work in the backends. The highlight and prettify are used for client side code highlighting. 

Sent from Mailbox for iPhone


On Mon, Nov 18, 2013 at 4:25 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.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Do we use same js files as asciidoc ?

mojavelinux
Administrator
In reply to this post by ch007m
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.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Do we use same js files as asciidoc ?

ch007m
I think that what you describe here should benefit to the community and specifically AsciidocTor documentation section (http://asciidoctor.org/docs/user-manual/#compared-to-asciidoc)


On Sun, Nov 24, 2013 at 11:52 PM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
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.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



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-tp1008p1074.html
To unsubscribe from Do we use same js files as asciidoc ?, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard