mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 20:30:36 +08:00
🐛 Export Markdown does not include .md file Fix https://github.com/siyuan-note/siyuan/issues/8587
This commit is contained in:
parent
69017fd2e9
commit
f6c6dff90e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user