asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
50 stars 45 forks source link

Extension should not run if stem attribute is not set on the document #94

Closed mojavelinux closed 3 years ago

mojavelinux commented 3 years ago

If the stem attribute is not set on the document, this extension should not run. That is consistent with how STEM content works in AsciiDoc. If the attribute is not set, the converter should leave the source alone (which means this extension should leave it alone too).

Furthermore, this extension should unset the stem attribute so the converter does not try to do any additional processing. For example, if this extension is used with HTML, MathJax should not be loaded. The way to ensure that is to remove the stem attribute from the document header.