Skip to content

BlockSuite API Documentation / @blocksuite/blocks / InlineMarkdownMatchAction

Type alias: InlineMarkdownMatchAction<TextAttributes>

InlineMarkdownMatchAction<TextAttributes>: (props) => ReturnType<KeyboardBindingHandler>

Type parameters

TextAttributes extends BaseTextAttributes = BaseTextAttributes

Parameters

props

props.inlineEditor: InlineEditor<TextAttributes>

props.inlineRange: InlineRange

props.pattern: RegExp

props.prefixText: string

props.undoManager: UndoManager

Returns

ReturnType<KeyboardBindingHandler>

Source

packages/blocks/src/_common/inline/inline-manager.ts:25