Skip to content

BlockSuite API Documentation / @blocksuite/blocks / NotionHtmlTransformer

Variable: NotionHtmlTransformer

const NotionHtmlTransformer: object

Type declaration

importNotionZip()

importNotionZip: (options) => Promise<object>

Imports a Notion zip file into the BlockSuite collection.

Parameters

options: ImportNotionZipOptions

The options for importing.

Returns

Promise<object>

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.

entryId

entryId: string

hasMarkdown

hasMarkdown: boolean

isWorkspaceFile

isWorkspaceFile: boolean

pageIds

pageIds: string[]

Defined in

packages/blocks/src/_common/transformers/notion-html.ts:144