From 2cea5ed6052903b7a5ffb10684187f2d128d3d4a Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 23 Mar 2023 15:08:55 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=AF=BC=E5=87=BA=20Markdown=20?= =?UTF-8?q?=E6=97=B6=E5=9C=A8=E6=96=87=E6=A1=A3=E5=A4=B4=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20YFM=20=E5=BC=80=E5=85=B3=20https://github.com/siyuan-note/si?= =?UTF-8?q?yuan/issues/7727?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 f68a08dbe..07dc4dded 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -1077,7 +1077,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPath id := docIAL["id"] hPath, md := exportMarkdownContent(id) - md = yfm(docIAL) + md dir, name = path.Split(hPath) dir = util.FilterFilePath(dir) // 导出文档时未移除不支持的文件名符号 https://github.com/siyuan-note/siyuan/issues/4590 name = util.FilterFileName(name) @@ -1441,6 +1440,8 @@ func exportMarkdownContent(id string) (hPath, exportedMd string) { Conf.Export.TagOpenMarker, Conf.Export.TagCloseMarker, Conf.Export.BlockRefTextLeft, Conf.Export.BlockRefTextRight, Conf.Export.AddTitle) + docIAL := parse.IAL2Map(tree.Root.KramdownIAL) + exportedMd = yfm(docIAL) + exportedMd return }