🎨 Improve exporting Word
This commit is contained in:
parent
b5bfbbe14a
commit
811636d051
1 changed files with 1 additions and 0 deletions
|
@ -610,6 +610,7 @@ func ExportDocx(id, savePath string, removeAssets, merge bool) (fullPath string,
|
|||
}
|
||||
defer os.Remove(tmpDir)
|
||||
name, content := ExportMarkdownHTML(id, tmpDir, true, merge)
|
||||
content = strings.ReplaceAll(content, " \n", "<br>\n")
|
||||
|
||||
tmpDocxPath := filepath.Join(tmpDir, name+".docx")
|
||||
args := []string{ // pandoc -f html --resource-path=请从这里开始 请从这里开始\index.html -o test.docx
|
||||
|
|
Loading…
Add table
Reference in a new issue