An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/12089
Vanessa2fd720696e58
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 49d9123e8f..441e8fad71 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -712,7 +712,8 @@ export class Toolbar {} else {// 测试不存在 https://ld246.com/article/1664454663564 情况,故移除引用合并限制// 搜索结果引用被高亮隔断需进行合并 https://github.com/siyuan-note/siyuan/issues/7588- currentNode.textContent = previousElement.textContent + currentNode.textContent;+ // textContent:防止赋值后 \n 转换为 br 导致后续 this.range.setStart 报错;innerText:获取 br 的 \n, https://github.com/siyuan-note/siyuan/issues/15968+ currentNode.textContent = previousElement.innerText + currentNode.innerText;// 如果为备注时,合并备注内容if (currentType.includes("inline-memo")) {currentNode.setAttribute("data-inline-memo-content", (previousElement.getAttribute("data-inline-memo-content") || "") +