prosekit/extensions/input-rule
Interfaces
Section titled “Interfaces”MarkInputRuleOptions
Section titled “MarkInputRuleOptions”Options for defineMarkInputRule.
Properties
Section titled “Properties”-
inCodeMark?:
boolean
-
Whether this rule should fire inside marks marked as code.
Default
Section titled “Default”false
-
The regular expression to match against, which should end with
$
and has exactly one capture group. All other matched text outside the capture group will be deleted.
Functions
Section titled “Functions”defineInputRule()
Section titled “defineInputRule()”-
function defineInputRule(
rule
:InputRule
):PlainExtension
-
Defines an input rule extension.
defineMarkInputRule()
Section titled “defineMarkInputRule()”-
function defineMarkInputRule(
options
:MarkInputRuleOptions
):PlainExtension
-
Defines an input rule for automatically adding inline marks when a given pattern is typed.
defineTextBlockInputRule()
Section titled “defineTextBlockInputRule()”-
function defineTextBlockInputRule(
options
:object
):PlainExtension
-
Defines an input rule that changes the type of a textblock when the matched text is typed into it.
See also textblockTypeInputRule
defineWrappingInputRule()
Section titled “defineWrappingInputRule()”-
function defineWrappingInputRule(
options
:object
):PlainExtension
-
Defines an input rule for automatically wrapping a textblock when a given string is typed.
See also wrappingInputRule