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: fix https://github.com/siyuan-note/siyuan/issues/6284
Vanessaa4ae8d6b3512
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex f9dff97c24..02d66eb032 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -517,7 +517,8 @@ export class Toolbar {const currentNewNode = newNodes[i] as HTMLElement;const nextNewNode = newNodes[i + 1] as HTMLElement;if (currentNewNode.nodeType !== 3 && nextNewNode && nextNewNode.nodeType !== 3 &&- isArrayEqual(nextNewNode.getAttribute("data-type").split(" "), currentNewNode.getAttribute("data-type").split(" ")) &&+ nextNewNode.tagName === currentNewNode.tagName &&+ isArrayEqual((nextNewNode.getAttribute("data-type") || "").split(" "), (currentNewNode.getAttribute("data-type") || "").split(" ")) &¤tNewNode.getAttribute("data-id") === nextNewNode.getAttribute("data-id") &¤tNewNode.getAttribute("data-subtype") === nextNewNode.getAttribute("data-subtype") &¤tNewNode.style.color === nextNewNode.style.color &&