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/insider/issues/1083
Liang Dinga3ec2b7753ed
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.goindex 44e0649e39..92ea0f07f4 100644--- a/kernel/model/backlink.go+++ b/kernel/model/backlink.go@@ -254,13 +254,15 @@ func buildBacklink(refID string, refTree *parse.Tree, luteEngine *lute.Lute) (rec = n.FirstChild.Next}- for liFirstBlockSpan := c.FirstChild; nil != liFirstBlockSpan; liFirstBlockSpan = liFirstBlockSpan.Next {- if treenode.IsBlockRef(liFirstBlockSpan) {- continue- }- if "" != strings.TrimSpace(liFirstBlockSpan.Text()) {- expand = false- break+ if c != n.LastChild { // 存在子列表+ for liFirstBlockSpan := c.FirstChild; nil != liFirstBlockSpan; liFirstBlockSpan = liFirstBlockSpan.Next {+ if treenode.IsBlockRef(liFirstBlockSpan) {+ continue+ }+ if "" != strings.TrimSpace(liFirstBlockSpan.Text()) {+ expand = false+ break+ }}}