From c8fbdc35fb5a161920004e68102f8e88a45e08a1 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:51:43 -0500 Subject: [PATCH] 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> --- plugins/notion/server/utils/NotionConverter.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/notion/server/utils/NotionConverter.ts b/plugins/notion/server/utils/NotionConverter.ts index 6071ed76e5..ee9fcbce29 100644 --- a/plugins/notion/server/utils/NotionConverter.ts +++ b/plugins/notion/server/utils/NotionConverter.ts @@ -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) { return { type: "container_toggle",