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 {