@mathjax/src
    Preparing search index...

    Class MathMLCompile<N, T, D>

    The class for performing the MathML DOM node to internal MmlNode conversion.

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Index

    Constructors

    Properties

    adaptor: DOMAdaptor<N, T, D>

    The DOMAdaptor for the document being processed

    factory: MmlFactory

    The instance of the MmlFactory object and

    options: OptionList

    The options (the defaults with the user options merged in)

    OPTIONS: OptionList = ...

    The default options for this object

    Methods

    • Copy the attributes from a MathML node to an MmlNode.

      Parameters

      • mml: MmlNode

        The MmlNode to which attributes will be added

      • node: N

        The MathML node whose attributes to copy

      Returns void

    • Convert the children of the MathML node and add them to the MmlNode

      Parameters

      • mml: MmlNode

        The MmlNode to which children will be added

      • node: N

        The MathML node whose children are to be copied

      Returns void

    • Check for special MJX values in the class and process them

      Parameters

      • mml: MmlNode

        The MmlNode to be modified according to the class markers

      • node: N

        The MathML node whose class is to be processed

      Returns void

    • Create an actual MmlNode tree from a given DOM node.

      Parameters

      • type: string

        The type of MmlNode to create

      • node: N

        The original DOM node that is being transcribed

      • texClass: string

        The texClass specified on the node, if any

      • limits: boolean

        True if fixed limits are to be used

      Returns MmlNode

      The final MmlNode tree

    • Provide a hook for the Safe extension to filter attribute values.

      Parameters

      • _name: string

        The name of an attribute to filter

      • value: string

        The value to filter

      Returns string

      The filtered value.

    • Provide a hook for the Safe extension to filter class names.

      Parameters

      • list: string[]

        The list of class names to filter

      Returns string[]

      The list of filtered class names

    • Fix the old incorrect spelling of calligraphic.

      Parameters

      • variant: string

        The mathvariant name

      Returns string

      The corrected variant

    • Recursively convert nodes and their children, taking MathJax classes into account.

      FIXME: we should use data-* attributes rather than classes for these

      Parameters

      • node: N

        The node to convert to an MmlNode

      Returns MmlNode

      The converted MmlNode

    • Handle unknown node by either creating an HTML node, or throwing an error.

      Parameters

      • type: string

        The type of node being requested

      • node: N

        The HTML node used to create it.

      Returns MmlNode

      The HtmlNode holding the node (or null)