🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735

This commit is contained in:
Liang Ding 2022-08-30 21:23:17 +08:00
parent 320353d51a
commit bffc33c278
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -550,6 +550,9 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
}
title := tree.Root.IALAttr("title")
if "" == title {
title = "Untitled"
}
content := tree.Root.Content()
p := strings.TrimPrefix(doc, util.HistoryDir)
p = filepath.ToSlash(p[1:])