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.
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.