BlockSuite API Documentation / @blocksuite/blocks / createEmbedBlockHtmlAdapterMatcher
Function: createEmbedBlockHtmlAdapterMatcher()
createEmbedBlockHtmlAdapterMatcher(
flavour
,__namedParameters
?):BlockHtmlAdapterMatcher
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
BlockHtmlAdapterMatcher
Defined in
packages/affine/block-embed/dist/common/adapters/html.d.ts:2