Global

Methods

loadAndTypeset(document, container, callback)

A helper function which loads MathJax if necessary and typesets any math elements within the container.
Parameters:
Name Type Description
document Document A Document Object Model. The MathJax Script is included in the section of the HTML document.
container HTMLElement The element whose math is to be typeset.
callback Callback A callback to run when the typeset is complete.
Source:

loadMathJax(document, callback)

Loads and configures MathJax if necessary.
Parameters:
Name Type Description
document Document A Document Object Model. The MathJax Script is included in the section of the HTML document.
callback Callback A callback to run when MathJax is loaded.
Source:

typesetMath(container, callback)

Typesets any math elements within the element.
Parameters:
Name Type Description
container HTMLElement The element whose math is to be typeset.
callback Callback A callback to run when the typeset is complete.
Source: