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:
Copilot
2026-02-12 18:51:43 -05:00
committed by GitHub
parent c382e1233b
commit c8fbdc35fb
@@ -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",