Skip to content

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

:art: 数据历史浏览时忽略内容块折叠状态 Fix https://github.com/siyuan-note/siyuan/issues/5778

Liang Ding306b06e530d3
diff --git a/kernel/model/history.go b/kernel/model/history.go
index e7e301f8d9..cb01729c1e 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -174,6 +174,10 @@ func GetDocHistoryContent(historyPath, keyword string) (id, rootID, content stri
return ast.WalkContinue
}
+ // 数据历史浏览时忽略内容块折叠状态 https://github.com/siyuan-note/siyuan/issues/5778
+ n.RemoveIALAttr("heading-fold")
+ n.RemoveIALAttr("fold")
+
if ast.NodeBlockRef == n.Type {
appendRefTextRenderResultForBlockRef(n)
return ast.WalkSkipChildren