diff --git a/kernel/model/history.go b/kernel/model/history.go index e7e301f8d..cb01729c1 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