Trevixal API
    Preparing search index...

    Function mathInputRules

    • The $…$ shortcut, to merge into an editor's rules: createEditor({ schema, inputRules: [...defaultInputRules(), ...mathInputRules()] }).

      Typing the closing $ swallows the whole $…$ run and leaves an inline math atom with the caret after it.

      Returns InputRule[]