From cdcb4bffabef8f8960cbffa4343aa2886092ad28 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 18 Sep 2026 05:13:28 -0700 Subject: [PATCH] chore(editor): remove unused escape helper --- .../editor/rich-markdown-literal-serialization.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts b/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts index 8d6d02ecd22..8eceb3f78c3 100644 --- a/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts +++ b/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts @@ -325,16 +325,6 @@ function hasEscapedEntityMark(node: JSONContent): boolean { ) } -function hasOnlyEscapedMarks(node: JSONContent): boolean { - if ( - node.type === 'text' && - node.marks?.some((mark) => mark.type !== RICH_MARKDOWN_ESCAPED_CHARACTER_MARK) - ) { - return false - } - return !(node.content ?? []).some((child) => !hasOnlyEscapedMarks(child)) -} - function blockHasEscapedCharacters(block: ProseMirrorNode): boolean { let found = false block.descendants((node) => {