mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-02 13:41:48 +01:00
🎨 Supports setting Pandoc parameters for export docx https://github.com/siyuan-note/siyuan/issues/16845
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
30bf687d1b
commit
9d1302a8f1
2 changed files with 1 additions and 1 deletions
|
|
@ -379,7 +379,6 @@ func setExport(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
export.PandocParams = util.ReplaceNewline(export.PandocParams, " ")
|
||||
model.Conf.Export = export
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
|
|
@ -776,6 +776,7 @@ func ExportDocx(id, savePath string, removeAssets, merge bool) (fullPath string,
|
|||
}
|
||||
|
||||
params := util.RemoveInvalid(Conf.Export.PandocParams)
|
||||
params = util.ReplaceNewline(params, " ")
|
||||
if "" != params {
|
||||
customArgs, parseErr := shellquote.Split(params)
|
||||
if nil != parseErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue