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/14639

Vanessac813e215377f
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 7c357e83f2..a26e1e2085 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -490,7 +490,9 @@ export class Toolbar {
// tag 会有零宽空格 https://github.com/siyuan-note/siyuan/issues/12922
(item.textContent === Constants.ZWSP && !rangeTypes.includes("img"))) {
// ZWSP spin 后会在行内元素外 https://github.com/siyuan-note/siyuan/issues/13871
- if (item.textContent.startsWith(Constants.ZWSP)) {
+ if (item.textContent.startsWith(Constants.ZWSP) &&
+ // https://github.com/siyuan-note/siyuan/issues/14639
+ item.textContent.length > 1) {
newNodes.push(document.createTextNode(Constants.ZWSP));
item.textContent = item.textContent.substring(1);
}