Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/16896

Daniel6eacd57ae7ad
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 67a592d720..f23ece28f9 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -777,7 +777,7 @@ export class Toolbar {
currentNode.textContent = currentNode.textContent.substring(1);
}
if (previousElement.textContent.endsWith(Constants.ZWSP)) {
- previousElement.textContent = previousElement.textContent.substring(0, previousElement.textContent.length - 2);
+ previousElement.textContent = previousElement.textContent.substring(0, previousElement.textContent.length - 1);
}
} else {
const previousType = previousElement ? (previousElement.getAttribute("data-type") || "").split(" ") : [];