From 0e1fe2f20f553d1b16177e3684f6af32590fbb21 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 18 Nov 2024 10:49:22 +0800 Subject: [PATCH] :art: Support exporting Markdown after selecting multiple documents https://github.com/siyuan-note/siyuan/issues/12912 --- kernel/model/export.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/export.go b/kernel/model/export.go index c47ed2446..d7ae9c00d 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -1389,10 +1389,11 @@ func BatchExportPandocConvertZip(ids []string, pandocTo, ext string) (name, zipP if "." == baseFolderName { baseFolderName = path.Base(block.Path) } - var docPaths []string + var docPaths []string bts := treenode.GetBlockTrees(ids) for _, bt := range bts { + docPaths = append(docPaths, bt.Path) docFiles := box.ListFiles(strings.TrimSuffix(bt.Path, ".sy")) for _, docFile := range docFiles { docPaths = append(docPaths, docFile.path)