🎨 Support exporting Markdown after selecting multiple documents https://github.com/siyuan-note/siyuan/issues/12912

This commit is contained in:
Daniel 2024-11-18 10:49:22 +08:00
parent 4a668ab414
commit 0e1fe2f20f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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)