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 {
        match: RegExp;
        run: (
            context: InputRuleContext,
            match: RegExpExecArray,
        ) => Transaction | null;
    }
    Index
    match: RegExp
    run: (context: InputRuleContext, match: RegExpExecArray) => Transaction | null