mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01: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
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ func ConvertPandoc(args ...string) (err error) {
|
||||||
|
|
||||||
func Pandoc(from, to, o, content string) (err error) {
|
func Pandoc(from, to, o, content string) (err error) {
|
||||||
if "" == from || "" == to || "md" == to {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue