🎨 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:
Daniel 2026-01-23 20:58:53 +08:00
parent 30bf687d1b
commit 9d1302a8f1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 1 additions and 1 deletions

View file

@ -379,7 +379,6 @@ func setExport(c *gin.Context) {
}
}
export.PandocParams = util.ReplaceNewline(export.PandocParams, " ")
model.Conf.Export = export
model.Conf.Save()

View file

@ -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 {