瀏覽代碼

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

Liang Ding 2 年之前
父節點
當前提交
306b06e530
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      kernel/model/history.go

+ 4 - 0
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