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 }