markInputRule
@blockslides/core / markInputRule
Function: markInputRule()
markInputRule(
config):InputRule
Defined in: blockslides/packages/core/src/inputRules/markInputRule.ts:14
Build an input rule that adds a mark when the matched text is typed into it.
Parameters
config
find
type
MarkType
undoable?
boolean
getAttributes?
false | Record<string, any> | (match) => Record<string, any> | null
Returns
See
https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules