🎨 Add "Remove ID from asset name" switch to export settings https://github.com/siyuan-note/siyuan/issues/16065

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-16 21:59:21 +08:00
parent 11115da3d0
commit 066a9b5192
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
21 changed files with 128 additions and 11 deletions

View file

@ -33,6 +33,7 @@ type Export struct {
TagCloseMarker string `json:"tagCloseMarker"` // 标签结束标记符,默认是 #
FileAnnotationRefMode int `json:"fileAnnotationRefMode"` // 文件标注引用导出模式0文件名 - 页码 - 锚文本1仅锚文本
PandocBin string `json:"pandocBin"` // Pandoc 可执行文件路径
RemoveAssetsID bool `json:"removeAssetsID"` // Markdown 导出时是否移除资源文件名 ID 部分 https://github.com/siyuan-note/siyuan/issues/16065
MarkdownYFM bool `json:"markdownYFM"` // Markdown 导出时是否添加 YAML Front Matter https://github.com/siyuan-note/siyuan/issues/7727
InlineMemo bool `json:"inlineMemo"` // 是否导出行级备注 https://github.com/siyuan-note/siyuan/issues/14605
PDFFooter string `json:"pdfFooter"` // PDF 导出时页脚内容
@ -55,6 +56,7 @@ func NewExport() *Export {
TagCloseMarker: "#",
FileAnnotationRefMode: 0,
PandocBin: "",
RemoveAssetsID: false,
MarkdownYFM: false,
InlineMemo: false,
PDFFooter: "%page / %pages",