@mathjax/src
    Preparing search index...

    Maps macros that all bring their own parsing method.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • name: string

        Name of the mapping.

      • json: { [index: string]: ParseFunction | [ParseFunction, ...Args[]] }

        The JSON representation of the macro map.

      • functionMap: { [key: string]: ParseMethod } = {}

        Optionally a collection of parse functions for the single macros. Kept for backward compatibility.

      Returns CommandMap

    Accessors

    • get parser(): ParseMethod

      Returns ParseMethod

      The default parsing method.

    • set parser(parser: ParseMethod): void

      Parameters

      • parser: ParseMethod

      Returns void

      The default parsing method.

    Methods

    • Sets mapping for a token.

      Parameters

      • token: string

        The token to map.

      • object: Macro

        The tokens value in the mapping's codomain.

      Returns void