From 19f233b5105d10b293e413873f4b7d5cd37e1f8d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 14 Jul 2023 18:35:38 +0800 Subject: [PATCH] :bug: Export .sy.zip doc title image is not exported Fix https://github.com/siyuan-note/siyuan/issues/8748 --- kernel/model/export.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/export.go b/kernel/model/export.go index 676f37e74..a2c7d4153 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -1225,6 +1225,11 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) ( for _, tree := range trees { var assets []string assets = append(assets, assetsLinkDestsInTree(tree)...) + titleImgPath := treenode.GetDocTitleImgPath(tree.Root) // Export .sy.zip doc title image is not exported https://github.com/siyuan-note/siyuan/issues/8748 + if "" != titleImgPath { + assets = append(assets, titleImgPath) + } + for _, asset := range assets { asset = string(html.DecodeDestination([]byte(asset))) if strings.Contains(asset, "?") {