mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +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:
1 parent
c382e1233b
commit
c8fbdc35fb
1 file changed
+5
@@ -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