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/6014
Vanessa56129699b9a7
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 8bad79d9bc..2554eeb457 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -518,6 +518,8 @@ export class Toolbar {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(" ")) &&+ currentNewNode.getAttribute("data-id") === nextNewNode.getAttribute("data-id") &&+ currentNewNode.getAttribute("data-subtype") === nextNewNode.getAttribute("data-subtype") &¤tNewNode.style.color === nextNewNode.style.color &¤tNewNode.style.webkitTextFillColor === nextNewNode.style.webkitTextFillColor &¤tNewNode.style.webkitTextStroke === nextNewNode.style.webkitTextStroke &&@@ -525,7 +527,9 @@ export class Toolbar {currentNewNode.style.fontSize === nextNewNode.style.fontSize &¤tNewNode.style.backgroundColor === nextNewNode.style.backgroundColor) {// 合并相同的 node- nextNewNode.innerHTML = currentNewNode.innerHTML + nextNewNode.innerHTML;+ if (currentNewNode.getAttribute("data-type").indexOf("block-ref") === -1) { // 引用不虚合并内容 https://ld246.com/article/1664454663564+ nextNewNode.innerHTML = currentNewNode.innerHTML + nextNewNode.innerHTML;+ }newNodes.splice(i, 1);i--;} else {