@mathjax/src
    Preparing search index...

    Implements the SerializedMmlVisitor (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

      • node: MmlNode

        The node whose children are to be added

      • space: string

        The spaces to use for indentation

      • nl: string

        The newline character (or empty)

      Returns string

      The serializied children

    • Convert HTML special characters to entities (&, <, >, ") Convert multi-character Unicode characters to entities Convert non-ASCII characters to entities.

      Parameters

      • value: string

        The string to be made HTML escaped

      Returns string

      The string with escaping performed

    • 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: Make the string version of the open tag, properly indented, with it attributes Increate the indentation level Add the childnodes Add the end tag with proper spacing (empty tags have the close tag following directly)

      Parameters

      • node: MmlNode

        The node to visit

      • space: string

        The number of spaces to use for indentation

      Returns string

      The serialization of the given node

    • Visit an inferred mrow, but don't add the inferred row itself (since it is supposed to be inferred).

      Parameters

      • node: MmlNode

        The inferred mrow to visit

      • space: string

        The amount of indenting for this node

      Returns string

      The serialized contents of the mrow, properly indented

    • 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