From f6c6dff90ed0a49fc6fc67dcb2ee99bf5159a19e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 21 Jun 2023 08:48:53 +0800 Subject: [PATCH] :bug: Export Markdown does not include .md file Fix https://github.com/siyuan-note/siyuan/issues/8587 --- kernel/util/pandoc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go index 9c4884f18..5e42ecf6c 100644 --- a/kernel/util/pandoc.go +++ b/kernel/util/pandoc.go @@ -52,6 +52,9 @@ func ConvertPandoc(args ...string) (err error) { func Pandoc(from, to, o, content string) (err error) { if "" == from || "" == to || "md" == to { + if err = gulu.File.WriteFileSafer(o, []byte(content), 0644); nil != err { + logging.LogErrorf("write export markdown file [%s] failed: %s", o, err) + } return }