@mathjax/src
    Preparing search index...

    Class MathML<N, T, D>

    Implements the MathML class (extends AbstractInputJax)

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    adaptor: DOMAdaptor<N, T, D> = null

    The DOMAdaptor for the MathDocument for this input jax

    findMathML: FindMathML<N, T, D>

    The FindMathML instance used to locate MathML in the document

    mathml: MathMLCompile<N, T, D>

    The MathMLCompile instance used to convert the MathML tree to internal format

    mmlFactory: MmlFactory = null

    The MathML node factory

    mmlFilters: FunctionList

    A list of functions to call on the parsed MathML DOM before conversion to internal structure

    options: OptionList

    The actual options supplied to the input jax

    postFilters: FunctionList

    Filters to run on the generated MathML after the TeX string is processed

    preFilters: FunctionList

    Filters to run on the TeX string before it is processed

    NAME: string = 'MathML'

    The name of this input jax

    OPTIONS: OptionList = ...

    Accessors

    • get name(): string

      Returns string

      The name of this input jax class

    • get processStrings(): boolean

      Don't process strings (process nodes)

      Returns boolean

    Methods

    • Check a parsed MathML string for errors.

      Parameters

      • doc: D

        The document returns from the DOMParser

      Returns D

      The document

    • Convert a MathItem to internal format: If there is no existing MathML node, or we are asked to reparse everything Execute the preFilters on the math Parse the MathML string in the desired format, and check the result for errors If we got an HTML document: Check that it has only one child (the element), and use it Otherwise Use the root element from the XML document If the node is not a node, report the error. Execute the mmlFilters on the parsed MathML Compile the MathML to internal format, and execute the postFilters Return the resulting internal format

      Parameters

      Returns MmlNode

    • Throw an error

      Parameters

      • message: string

        The error message to produce

      Returns void