From c1a6206f7be34a85739430a42b2bd84d6b34ad38 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 24 Jan 2026 20:31:24 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13635#issuecomment-3794560233 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/export.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/export.go b/kernel/model/export.go index 06d8e34fb..7d2cc2153 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -3411,6 +3411,11 @@ func exportPandocConvertZip(baseFolderName string, docPaths, defBlockIDs []strin name = util.FilterFileName(name) hPath = path.Join(dir, name) p = hPath + ext + if 1 == len(docPaths) { + // 如果仅导出单个文档则使用文档标题作为文件名,不使用父路径 https://github.com/siyuan-note/siyuan/issues/13635#issuecomment-3794560233 + p = name + ext + } + writePath := filepath.Join(exportFolder, p) hash := fmt.Sprintf("%x", sha1.Sum([]byte(md))) if gulu.File.IsExist(writePath) && hash != wrotePathHash[writePath] {