From 306b06e530d3bed40ce7cd12f53920c31d1311e4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 1 Sep 2022 10:27:17 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E6=97=B6=E5=BF=BD=E7=95=A5=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=9D=97=E6=8A=98=E5=8F=A0=E7=8A=B6=E6=80=81=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/5778?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/history.go | 4 ++++ 1 file changed, 4 insertions(+) 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