I
InputRuleSpec
testedA pattern that transforms the current block or marks when typed (e.g. `'# '` → heading, `'**x**'` → bold). The matching engine lands in M2; the type is declared now so block/mark definitions can carry their rules as data.
Signature
ts
interface InputRuleSpecProperties
| Property | Type | Description |
|---|---|---|
matchreadonly | RegExp | Pattern tested against the text ending at the caret. |
type?readonly | string | undefined | Target block/mark type to apply on match. |
attrs?readonly | Readonly<Record<string, import("..").AttrValue>> | undefined | Attrs to apply with the transformation. |