From 9c5a61016062193d19d95f44d9b0c6d797a70d0a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 4 Nov 2024 09:36:56 +0800 Subject: [PATCH] :bug: Fix inline underscore element paste as plain text https://github.com/siyuan-note/siyuan/issues/13015 --- app/src/protyle/util/paste.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 689a59410..0b0669633 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -182,7 +182,7 @@ export const pasteAsPlainText = async (protyle: IProtyle) => { textPlain = textPlain.replace(/__@sub@__/g, "").replace(/__@\/sub@__/g, ""); textPlain = textPlain.replace(/__@sup@__/g, "").replace(/__@\/sup@__/g, ""); textPlain = textPlain.replace(/__@kbd@__/g, "").replace(/__@\/kbd@__/g, ""); - textPlain = textPlain.replace(/__@u@__/g, "").replace(/__@\/u@__/g, "").replace(/__@\/u@__/g, ""); const content = protyle.lute.BlockDOM2EscapeMarkerContent(protyle.lute.Md2BlockDOM(textPlain)); // insertHTML 会进行内部反转义