AbstractStaticadaptorThe DOMAdaptor instance (created after everything is loaded)
StaticconstructorsThe constructors (or other data) registered by the loaded packages
StaticdefaultThe default OptionError function
StaticdocumentThe MathDocument instance being used (based on the browser DOM or configuration value)
StaticelementsThe elements to process (set when typeset or conversion method is called)
StaticextensionsThe array of handler extensions
StatichandlerThe Handler instance (created after everything is loaded)
StatichasThis is true when MathJax.typeset() or MathJax.typesetPromise() have been called (used by the menu code to tell if a rerender action is needed when a component is loaded dynamically).
StaticinputThe array of InputJax instances (created after everything is loaded)
StaticoutputThe OutputJax instance (created after everything is loaded)
StaticpageA promise that is resolved when the page contents are available for processing.
StaticpromiseThe promise for the startup process (the initial typesetting). It is resolved or rejected in the ready() function.
StaticpromiseThe function that rejects the first promise defined below (called in the defaultReady() function when MathJax's initial typesetting fails)
StaticpromiseThe function that resolves the first promise defined below (called in the defaultReady() function when MathJax is finished with its initial typesetting)
StaticdefaultThe default pageReady() function called when the page is ready to be processed, which returns a promise that does any initial font loading, plus the initial typesetting, if needed.
Setting Mathjax.startup.pageReady in the configuration will override this.
Promise resolving when page is ready to process.
StaticdefaultThe default ready() function called when all the packages have been loaded, which creates the various objects needed by MathJax, creates the methods based on the loaded components, and does the initial typesetting.
Setting MathJax.startup.ready in the configuration will override this, but you can call MathJax.startup.defaultReady() within your own ready function if needed, or can use the individual methods below to perform portions of the default startup actions.
StaticextendA function to extend the handler class
The priority of the extension
StaticgetThe instance of the registered DOMAdator (the registered constructor in this case is a function that creates the adaptor, not a class)
StaticgetCreate the instances of the registered components
StaticgetCreate the document with the given input and output jax
The Document to use as the root document (or null to use the configured document)
The MathDocument with the configured input and output jax
StaticgetThe instance of the registered Handler, extended by the registered extensions
StaticgetThe array of instances of the registered input jax
StaticgetThe instance of the registered output jax
StaticmakeMake the typeset and conversion methods based on the registered components
If there are both input and output jax, Make Typeset() and TypesetPromise() methods using the given jax, and TypesetClear() to clear the existing math items For each input jax Make input2mml() and input2mmlPromise() conversion methods and inputReset() method If there is a registered output jax Make input2output() and input2outputPromise conversion methods and outputStylesheet() method Create the MathJax.done() method. Create the MathJax.whenReady() method.
StaticmakeMake the input2mml(math, options?) and input2mmlPromise(math, options?) methods, where "input" is replaced by the name of the input jax (e.g., "tex2mml").
These convert the math to its serialized MathML representation. The second wraps the conversion in handleRetriesFor() and returns the resulting promise.
The name of the input jax
The input jax itself
StaticmakeMake the input2output(math, options?) and input2outputPromise(math, options?) methods, and outputStylesheet() method, where "input" and "output" are replaced by the jax names (e.g., tex2chtml() and chtmlStyleSheet()).
The first two perform the document's convert() call, with the Promise version wrapped in handlerRetriesFor() and returning the resulting promise. The return value is the DOM object for the converted math. Use MathJax.startup.adaptor.outerHTML(result) to get the serialized string version of the output.
The outputStylesheet() method returns the styleSheet object for the output. Use MathJax.startup.adaptor.innerHTML(MathJax.outputStylesheet()) to get the serialized version of the stylesheet. The getMetricsFor(node, display) method returns the metric data for the given node
The name of the input jax
The name of the output jax
The input jax instance
StaticmakeCreates the inputReset() method, where "input" is replaced by the input jax name (e.g., "texReset()).
The texReset() method clears the equation numbers and labels
The name of the input jax
The input jax itself
StaticmakeCreate the Typeset(elements?), TypesetPromise(elements?), and TypesetClear() methods.
The first two call the document's render() function, the latter wrapped in handleRetriesFor() and returning the resulting promise.
TypeseClear() clears all the MathItems from the document.
StaticregisterThe identifier for the constructor
The constructor function for the named object
StatictoThe root of the tree to convert to serialized MathML
The serialized MathML from the tree
StatictypesetPerform the typesetting with handling of retries
The list of elements to typeset
The promise that resolves when elements are typeset
StaticuseThe identifier for the DOMAdaptor to use
True to force the DOMAdaptor to be used even if one is already registered
StaticuseThe identifier for the Handler to use
True to force the Handler to be used even if one is already registered
StaticuseThe identifier for the InputJax to use
True to force the InputJax to be used even if the configuration already included an array of input jax
StaticuseThe identifier for the OutputJax to use
True to force the OutputJax to be used even if one is already registered
The implementation of the startup module