Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createEmbedBlockMarkdownAdapterMatcher

Function: createEmbedBlockMarkdownAdapterMatcher()

createEmbedBlockMarkdownAdapterMatcher(flavour, __namedParameters?): BlockMarkdownAdapterMatcher

Parameters

flavour

string

__namedParameters?

fromBlockSnapshot

{ enter: (o, context) => void | Promise<void>; leave: (o, context) => void | Promise<void>; }

fromBlockSnapshot.enter

(o, context) => void | Promise<void>

Called when entering a BlockSnapshot walker node during traversal

fromBlockSnapshot.leave

(o, context) => void | Promise<void>

Called when leaving a BlockSnapshot walker node during traversal

fromMatch

(o) => boolean

toBlockSnapshot

{ enter: (o, context) => void | Promise<void>; leave: (o, context) => void | Promise<void>; }

toBlockSnapshot.enter

(o, context) => void | Promise<void>

Called when entering a target walker node during traversal

toBlockSnapshot.leave

(o, context) => void | Promise<void>

Called when leaving a target walker node during traversal

toMatch

(o) => boolean

Returns

BlockMarkdownAdapterMatcher

Defined in

packages/affine/block-embed/dist/common/adapters/markdown.d.ts:2