@mathjax/src
    Preparing search index...

    Implements the LegacyMmlVisitor (subclass of MmlVisitor)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    nodeHandlers: Map<string, VisitorFunction<MmlNode>> = ...

    Holds the mapping from node kinds to visitor funcitons

    defaultAttributes: { [kind: string]: PropertyList } = ...

    Attributes to include on every element of a given kind

    rename: PropertyList = ...

    MmlNode kinds to replace with other names

    variants: PropertyList = ...

    Translations for the internal mathvariants

    Methods

    • Parameters

      • data: PropertyList

        The class attribute list

      • name: string

        The name for the data-mjx-name attribute

      • value: string

        The value of the attribute

      Returns void

    • The generic visiting function: Create a node of the correct type. Add its explicit attributes. Add its non-attribute properties. Append its children nodes. Append the new node to the old-style parent.

      Parameters

      • node: MmlNode

        The node to visit

      • parent: any

        The old-style parent to which this node should be added

      Returns void

    • Visit an inferred mrow, but don't add the inferred row itself (the old-style nodes will add one automatically).

      Parameters

      • node: MmlNode

        The inferred mrow to visit

      • parent: any

        The old-style parent to which this node's children should be added

      Returns void

    • Visitor functions are named "visitKindNode" where "Kind" is replaced by the node kind; e.g., visitTextNode for kind = text.

      Parameters

      • kind: string

        The node kind whose method name is needed

      Returns string

      The name of the visitor method for the given node kind