@mathjax/src
    Preparing search index...

    Class of token mappings that are active in a configuration.

    Index

    Methods

    • Adds a list of token maps to the handler.

      Parameters

      • maps: string[]

        The names of the token maps to add.

      • fallback: ParseMethod

        A fallback method.

      • priority: number = PrioritizedList.DEFAULTPRIORITY

        Optionally a priority.

      Returns void

    • Retrieves the first applicable token map in the configuration.

      Parameters

      • token: string

        The token to parse.

      Returns TokenMap

      A map that can parse the token.

    • Checks if a token is contained in one of the token mappings of this configuration.

      Parameters

      • token: string

        The token to parse.

      Returns boolean

      True if the token is contained in the mapping.

    • Maps a token to its "parse value" if it exists.

      Type Parameters

      • T

      Parameters

      • token: string

        The token to parse.

      Returns T

      A boolean, Character, or Macro.

    • Parses the given input with the first applicable token map.

      Parameters

      • input: ParseInput

        The input for the parser.

      Returns ParseResult

      The output of the parsing function.

    • Removes a list of token maps from the handler

      Parameters

      • maps: string[]

        The names of the token maps to remove.

      • fallback: ParseMethod = null

        A fallback method to remove.

      Returns void