From 73e2ce44e9b75d3b8fd755836f6de8c762a70ea3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 25 Jul 2024 11:41:33 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12074 --- app/src/protyle/wysiwyg/input.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 349d4bd3b..528b90eed 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -86,7 +86,8 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: brElement.remove(); } - if (editElement.innerHTML.startsWith("》") || editElement.innerHTML.indexOf("\n》") > -1) { + if (type !== "NodeHeading" && + (editElement.innerHTML.startsWith("》") || editElement.innerHTML.indexOf("\n》") > -1)) { editElement.innerHTML = editElement.innerHTML.replace("》", ">"); } const trimStartText = editElement.innerHTML.trimStart();