mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
Ignore table_of_contents blocks in Notion import (#11424)
* Initial plan * feat: Add handler to ignore table_of_contents Notion block Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,7 @@ import type {
|
||||
ImageBlockObjectResponse,
|
||||
EmbedBlockObjectResponse,
|
||||
TableBlockObjectResponse,
|
||||
TableOfContentsBlockObjectResponse,
|
||||
ToDoBlockObjectResponse,
|
||||
EquationBlockObjectResponse,
|
||||
CodeBlockObjectResponse,
|
||||
@@ -575,6 +576,10 @@ export class NotionConverter {
|
||||
};
|
||||
}
|
||||
|
||||
private static table_of_contents(_: TableOfContentsBlockObjectResponse) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
private static toggle(item: Block<ToggleBlockObjectResponse>) {
|
||||
return {
|
||||
type: "container_toggle",
|
||||
|
||||
Reference in New Issue
Block a user