From 6fe5754234d0a10bffac4e01cf84b16461852833 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 6 Feb 2024 21:48:23 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/10330 --- app/src/protyle/wysiwyg/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 913fa22eb..865c78520 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -145,7 +145,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: if (blockElement.classList.contains("table")) { scrollLeft = getContenteditableElement(blockElement).scrollLeft; } - if (/.<\/span>/.test(html)) { + if (/.+<\/span>/.test(html)) { // 转义不需要添加 zwsp blockElement.outerHTML = html; } else {