Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/10330

Vanessa6fe5754234d0
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 913fa22eb1..865c78520e 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 data-type="backslash">.<\/span><wbr>/.test(html)) {
+ if (/<span data-type="backslash">.+<\/span><wbr>/.test(html)) {
// 转义不需要添加 zwsp
blockElement.outerHTML = html;
} else {