BlockSuite API Documentation / @blocksuite/affine-block-root / NotionHtmlTransformer
Variable: NotionHtmlTransformer
constNotionHtmlTransformer:object
Defined in: packages/affine/blocks/block-root/src/transformers/notion-html.ts:169
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.