mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 19:56:10 +01:00
🎨 桌面端内置 Pandoc 可执行文件 https://github.com/siyuan-note/siyuan/issues/5835
This commit is contained in:
parent
ffa53aa4f1
commit
d134045a60
13 changed files with 91 additions and 19 deletions
|
|
@ -127,10 +127,8 @@ func setExport(c *gin.Context) {
|
|||
|
||||
if "" != export.PandocBin {
|
||||
if !util.IsValidPandocBin(export.PandocBin) {
|
||||
ret.Code = -1
|
||||
ret.Msg = fmt.Sprintf(model.Conf.Language(117), export.PandocBin)
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
||||
return
|
||||
util.PushErrMsg(fmt.Sprintf(model.Conf.Language(117), export.PandocBin), 5000)
|
||||
export.PandocBin = util.PandocBinPath
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue