Trevixal API
    Preparing search index...

    Interface MathUICommands

    The command bundle @trevixal/ui is handed so its Insert menu and equation dialog can drive math without importing this package (see tableUICommands): createEditorUI(editor, { mathCommands: mathUICommands() }).

    interface MathUICommands {
        insertMath: (latex: string) => Command;
        insertMathBlock: (latex: string) => Command;
        setMathLatex: (latex: string) => Command;
    }
    Index
    insertMath: (latex: string) => Command

    Inline formula at the caret; a selected run of text becomes the source.

    insertMathBlock: (latex: string) => Command

    Display formula as its own block, replacing an empty paragraph.

    setMathLatex: (latex: string) => Command

    Apply edited source to the formula at the selection.