From 928a0acc41f5b037fce3ef4e908dfd1c386c21b1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 12 Oct 2022 21:07:43 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6170 --- app/src/protyle/wysiwyg/input.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 9aa8487a8..e589c54a8 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -58,8 +58,8 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: } blockElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss")); - if (editElement.innerHTML === "》") { - editElement.innerHTML = ">"; + if (editElement.innerHTML === "》" || editElement.innerHTML.indexOf("\n》") > -1) { + editElement.innerHTML = editElement.innerHTML.replace("》",">"); } const trimStartText = editElement.innerHTML.trimStart(); if ((trimStartText.startsWith("````") || trimStartText.startsWith("····") || trimStartText.startsWith("~~~~")) &&