An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/12922
Vanessa1c00b91aa749
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 10255d5115..7f370813a9 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -493,7 +493,9 @@ export class Toolbar {hasSameTextStyle(item, nextElement, textObj)) {nextIndex = item.textContent.length;nextElement.innerHTML = item.textContent + nextElement.innerHTML;- } else if (item.textContent !== Constants.ZWSP) {+ } else if (item.textContent !== Constants.ZWSP ||+ // tag 会有零宽空格 https://github.com/siyuan-note/siyuan/issues/12922+ (item.textContent === Constants.ZWSP && !rangeTypes.includes("img"))) {const inlineElement = document.createElement("span");inlineElement.setAttribute("data-type", type);inlineElement.textContent = item.textContent;