mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 10:46:09 +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
d5f7bf2c02
commit
e9564ff0ec
2 changed files with 6 additions and 6 deletions
|
|
@ -165,12 +165,11 @@ export const exportConfig = {
|
|||
<span class="fn__space"></span>
|
||||
<button class="b3-button b3-button--outline fn__flex-center fn__size200" id="pandocBin"><svg><use xlink:href="#iconSettings"></use></svg>${window.siyuan.languages.config}</button>
|
||||
</div>
|
||||
<div class="fn__flex b3-label config__item">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.export25}
|
||||
<div class="b3-label__text">${window.siyuan.languages.export26}</div>
|
||||
</div>
|
||||
<input class="b3-text-field fn__flex-center fn__size200" id="pandocParams">
|
||||
<div class="b3-label config__item">
|
||||
${window.siyuan.languages.export25}
|
||||
<div class="b3-label__text">${window.siyuan.languages.export26}</div>
|
||||
<div class="fn__hr"></div>
|
||||
<textarea class="b3-text-field fn__block" id="pandocParams"></textarea>
|
||||
</div>
|
||||
<div class="fn__flex b3-label config__item">
|
||||
<div class="fn__flex-1 fn__flex-center">
|
||||
|
|
|
|||
|
|
@ -379,6 +379,7 @@ func setExport(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
export.PandocParams = util.ReplaceNewline(export.PandocParams, " ")
|
||||
model.Conf.Export = export
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue