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/5009
Liang Ding6d6cfbe6697f
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 0619baaf81..d0d1df7bd6 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -386,7 +386,6 @@ declare interface IBlockTree {nodeType: string,subType: string,name: string,- full: string,type: string,depth: number,url?: string,diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.tsindex 27c3ef4e1f..705b4f20d4 100644--- a/app/src/util/Tree.ts+++ b/app/src/util/Tree.ts@@ -71,7 +71,7 @@ data-type="${item.nodeType}"data-subtype="${item.subType}"${item.label ? "data-label='" + item.label + "'" : ""}><span style="padding-left: ${item.depth * 16}px" class="b3-list-item__toggle">- <svg data-id="${item.full || (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>+ <svg data-id="${(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.name}</span>diff --git a/kernel/model/block.go b/kernel/model/block.goindex 5210102558..2bdf0702ee 100644--- a/kernel/model/block.go+++ b/kernel/model/block.go@@ -64,7 +64,6 @@ type Path struct {ID string `json:"id"` // 块 IDBox string `json:"box"` // 块 BoxName string `json:"name"` // 当前路径- Full string `json:"full"` // 全路径Type string `json:"type"` // "path"NodeType string `json:"nodeType"` // 节点类型SubType string `json:"subType"` // 节点子类型