From 3560fed49624f833e3ff47166296dc8d843109d0 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 30 Oct 2024 09:23:20 +0800 Subject: [PATCH] :art: Clean code --- kernel/model/export.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/export.go b/kernel/model/export.go index f9e7f57f7..bbaef5aee 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -1434,8 +1434,9 @@ func BatchExportMarkdown(boxID, folderPath string) (zipPath string) { func yfm(docIAL map[string]string) string { // 导出 Markdown 文件时开头附上一些元数据 https://github.com/siyuan-note/siyuan/issues/6880 - // 导出 Markdown 时在文档头添加 YFM 开关https://github.com/siyuan-note/siyuan/issues/7727 + if !Conf.Export.MarkdownYFM { + // 导出 Markdown 时在文档头添加 YFM 开关 https://github.com/siyuan-note/siyuan/issues/7727 return "" }