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: Improve handling of assets when exporting to Word .docx format https://github.com/siyuan-note/siyuan/issues/15253
Danielfeb5f0cefe53
diff --git a/kernel/model/export.go b/kernel/model/export.goindex 9dcd58b10e..0a5598f0c6 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -800,6 +800,9 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom stringif ast.NodeLinkDest == n.Type {if bytes.HasPrefix(n.Tokens, []byte("file://")) {n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("\\"), []byte("/"))+ if !bytes.HasPrefix(n.Tokens, []byte("file:///")) {+ n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("file://"), []byte("file:///"))+ }}}return ast.WalkContinue