V

applyInputRule

tested

Apply the first matching block input-rule at the caret. Rules live on block definitions (inputRules) and match the text from the block start to the caret — e.g. '# ' → heading, '- ' → bulleted list, '> ' → quote. Run from the input flow after each text change.

Signature

ts
const applyInputRule: Command