Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17737

Vanessa295e4f486184
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 036aedbd13..d047a32953 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -209,7 +209,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
if (blockElement.classList.contains("table")) {
scrollLeft = blockElement.firstElementChild.scrollLeft;
}
- if (/<span data-type="backslash">.+<\/span><wbr>/.test(html)) {
+ if (/<span data-type="backslash">.{1,8}<\/span><wbr>/.test(html)) {
// 转义不需要添加 zwsp
blockElement.outerHTML = html;
} else {