Skip to content

BlockSuite API Documentation / @blocksuite/blocks / InlineMarkdownMatchAction

Type Alias: InlineMarkdownMatchAction()<AffineTextAttributes>

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

Type Parameters

AffineTextAttributes extends BaseTextAttributes = BaseTextAttributes

Parameters

props

props.inlineEditor: InlineEditor<AffineTextAttributes>

props.inlineRange: InlineRange

props.pattern: RegExp

props.prefixText: string

props.undoManager: Y.UndoManager

Returns

ReturnType<KeyboardBindingHandler>

Defined in

packages/affine/components/dist/rich-text/extension/type.d.ts:26