Trevixal API
    Preparing search index...

    Interface MathCommands

    Equation commands, from @trevixal/extension-math.

    interface MathCommands {
        insertMath?: (latex: string) => Command;
        insertMathBlock?: (latex: string, numbered?: boolean) => Command;
        render?: (latex: string, display: boolean) => string;
        setMathLatex?: (latex: string) => Command;
        setMathNumbered?: (numbered: boolean) => Command;
    }
    Index
    insertMath?: (latex: string) => Command
    insertMathBlock?: (latex: string, numbered?: boolean) => Command

    A display equation, numbered when asked.

    render?: (latex: string, display: boolean) => string

    Draw LaTeX as the document does, for the equation dialog's preview.

    setMathLatex?: (latex: string) => Command

    With these, a double-click on an equation edits it.

    setMathNumbered?: (numbered: boolean) => Command