Member Junction
    Preparing search index...

    The custom token emitted for a TeX math span or block.

    The framework-agnostic hand-off: the HTML path renders it as a code.mj-math placeholder holding the TeX source (typeset later in the browser, see MarkdownService.RenderMath in ng-markdown), and a native renderer can read text directly or show it as-is.

    interface MathToken {
        displayMode: boolean;
        raw: string;
        text: string;
        tokens?: Token[];
        type: "math" | "mathBlock";
        [index: string]: any;
    }

    Hierarchy

    • Generic
      • MathToken

    Indexable

    • [index: string]: any
    Index

    Properties

    displayMode: boolean

    Display style ($$…$$, \[…\]) rather than inline style ($…$, \(…\)).

    raw: string

    The original matched markdown source, delimiters included.

    text: string

    The TeX source between the delimiters, trimmed.

    tokens?: Token[]
    type: "math" | "mathBlock"

    mathBlock for a block on its own lines, math for a span inside a paragraph.