From e359fbf74696ee04106aad9b84a905bf756db308 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 18 Sep 2026 05:26:35 -0700 Subject: [PATCH] fix(editor): scope currency escape recovery to escaped source --- .../editor/rich-markdown-literal-serialization.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 61562f3c2cb..5748be5629b 100644 --- a/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts +++ b/src/renderer/src/components/editor/rich-markdown-literal-serialization.ts @@ -260,9 +260,11 @@ export function preserveLiteralMarkdownSource( if (isPlainEscapedBlock && !info.inTableCell) { result = result.replace(/\\\$(?=\d)/g, '$') } - result = info.inTableCell - ? result.replace(/(?