🎨 导出 Markdown 时在文档头添加 YFM 开关 https://github.com/siyuan-note/siyuan/issues/7727

This commit is contained in:
Liang Ding 2023-03-21 11:52:13 +08:00
parent 1e11df1222
commit 35a52dd260
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
9 changed files with 26 additions and 0 deletions

View file

@ -28,6 +28,7 @@ type Export struct {
TagCloseMarker string `json:"tagCloseMarker"` // 标签结束标记符,默认是 #
FileAnnotationRefMode int `json:"fileAnnotationRefMode"` // 文件标注引用导出模式0文件名 - 页码 - 锚文本1仅锚文本
PandocBin string `json:"pandocBin"` // Pandoc 可执行文件路径
MarkdownYFM bool `json:"markdownYFM"` // Markdown 导出时是否添加 YAML Front Matter https://github.com/siyuan-note/siyuan/issues/7727
}
func NewExport() *Export {
@ -43,5 +44,6 @@ func NewExport() *Export {
TagCloseMarker: "#",
FileAnnotationRefMode: 0,
PandocBin: "",
MarkdownYFM: false,
}
}