Trevixal API
    Preparing search index...

    Interface InputRule

    A pattern-triggered transform. match runs against the block text from its start to the caret plus the just-typed character, and must anchor at the end ($). When it fires, the typed character is never inserted. The rule produces the whole transaction.

    interface InputRule {
        after?: boolean;
        match: RegExp;
        run: (
            context: InputRuleContext,
            match: RegExpExecArray,
        ) => Transaction | null;
    }
    Index
    after?: boolean

    Run once the typed character is in the document, as an undo step of its own, instead of in its place: Word's AutoFormat as you type, which Ctrl+Z takes back leaving what was typed. match then sees the text up to and including the character, from the last inline node before it (shown as U+FFFC), and so also fires after a footnote marker or an equation. See applyTypedTextRules.

    match: RegExp
    run: (context: InputRuleContext, match: RegExpExecArray) => Transaction | null