Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve exporting markdown block ref relative path https://github.com/siyuan-note/siyuan/issues/16042

Danielf87f22c2b83c
diff --git a/kernel/model/export.go b/kernel/model/export.go
index 3240a2560e..18d7c11108 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -2109,6 +2109,7 @@ func exportMarkdownContent0(id string, tree *parse.Tree, cloudAssetsBase string,
}
currentDocDir := path.Dir(tree.HPath)
+ currentDocDir = util.FilterFilePath(currentDocDir)
var unlinks []*ast.Node
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {