BlockSuite API Documentation / @blocksuite/blocks / NotionHtmlTransformer
Variable: NotionHtmlTransformer
const
NotionHtmlTransformer:object
Type declaration
importNotionZip()
importNotionZip: (
options
) =>Promise
<{entryId
:string
;hasMarkdown
:boolean
;isWorkspaceFile
:boolean
;pageIds
:string
[]; }>
Imports a Notion zip file into the BlockSuite collection.
Parameters
options
ImportNotionZipOptions
The options for importing.
Returns
Promise
<{ entryId
: string
; hasMarkdown
: boolean
; isWorkspaceFile
: boolean
; pageIds
: string
[]; }>
A promise that resolves to an object containing: - entryId: The ID of the entry page (if any). - pageIds: An array of imported page IDs. - isWorkspaceFile: Whether the imported file is a workspace file. - hasMarkdown: Whether the zip contains markdown files.
Defined in
packages/blocks/src/_common/transformers/notion-html.ts:144