Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 多级标题折叠后上级块引浮窗中未折叠 Fix https://github.com/siyuan-note/siyuan/issues/4997

Liang Ding8b3f5594044d
diff --git a/kernel/model/file.go b/kernel/model/file.go
index b49465ea8b..f191158c0c 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -694,8 +694,9 @@ func loadNodesByMode(node *ast.Node, inputIndex, mode, size int, isDoc, isHeadin
} else if isHeading {
level := node.HeadingLevel
for n := node.Next; nil != n; n = n.Next {
- if "1" == n.IALAttr("heading-fold") && ("1" == node.IALAttr("fold") && 0 == mode) {
- // 从大纲跳转折叠标题的下方标题时需要判断跳转的标题是否是折叠 https://github.com/siyuan-note/siyuan/issues/4920
+ if "1" == n.IALAttr("heading-fold") {
+ // 大纲点击折叠标题跳转聚焦 https://github.com/siyuan-note/siyuan/issues/4920
+ // 多级标题折叠后上级块引浮窗中未折叠 https://github.com/siyuan-note/siyuan/issues/4997
continue
}
if ast.NodeHeading == n.Type {