🐛 Export Markdown does not include .md file Fix https://github.com/siyuan-note/siyuan/issues/8587

This commit is contained in:
Daniel 2023-06-21 08:48:53 +08:00
parent 69017fd2e9
commit f6c6dff90e
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

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