mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 导出 Markdown 时在文档头添加 YFM 开关 https://github.com/siyuan-note/siyuan/issues/7727
This commit is contained in:
parent
1e11df1222
commit
35a52dd260
9 changed files with 26 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue