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

This commit is contained in:
Liang Ding 2022-09-01 10:27:17 +08:00
parent 0514041a5c
commit 306b06e530
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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