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/5248
Vanessa14f0b47ed1d9
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.tsindex fd39c73633..2737f678eb 100644--- a/app/src/types/protyle.d.ts+++ b/app/src/types/protyle.d.ts@@ -132,6 +132,8 @@ declare class Lute {public static GetHeadingID(node: ILuteNode): string;+ public static BlockDOM2Content(html: string): string;+private constructor();public SetHeadingID(enable: boolean): void;diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.tsindex b547d11968..c1d1c3c0a2 100644--- a/app/src/util/Tree.ts+++ b/app/src/util/Tree.ts@@ -76,7 +76,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}><svg data-id="${encodeURIComponent(item.name + item.depth)}" class="b3-list-item__arrow ${((item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)) ? "b3-list-item__arrow--open" : "fn__hidden"}"><use xlink:href="#iconRight"></use></svg></span>${iconHTML}- <span class="b3-list-item__text"${item.type === "outline" ? ' title="' + Lute.EscapeHTMLStr(item.name) + '"' : ""}>${item.name}</span>+ <span class="b3-list-item__text"${item.type === "outline" ? ' title="' + Lute.EscapeHTMLStr(Lute.BlockDOM2Content(item.name)) + '"' : ""}>${item.name}</span>${countHTML}</li>`;if (item.children && item.children.length > 0) {@@ -121,7 +121,7 @@ data-def-path="${item.defPath}"><svg data-id="${item.id}" class="b3-list-item__arrow${item.children ? "" : " fn__hidden"}"><use xlink:href="#iconRight"></use></svg></span>${iconHTML}- <span class="b3-list-item__text" ${type === "outline" ? ' title="' + Lute.EscapeHTMLStr(item.content) + '"' : ""}>${item.content}</span>+ <span class="b3-list-item__text" ${type === "outline" ? ' title="' + Lute.EscapeHTMLStr(Lute.BlockDOM2Content(item.content)) + '"' : ""}>${item.content}</span>${countHTML}${this.blockExtHTML || ""}</li>`;