An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 导出 Markdown 时在文档头添加 YFM 开关 https://github.com/siyuan-note/siyuan/issues/7727
Liang Ding2cea5ed60529
diff --git a/kernel/model/export.go b/kernel/model/export.goindex f68a08dbe5..07dc4dded5 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -1077,7 +1077,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPathid := docIAL["id"]hPath, md := exportMarkdownContent(id)- md = yfm(docIAL) + mddir, name = path.Split(hPath)dir = util.FilterFilePath(dir) // 导出文档时未移除不支持的文件名符号 https://github.com/siyuan-note/siyuan/issues/4590name = 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) + exportedMdreturn}