An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Loses text after inline codes when exporting Word/HTML https://github.com/siyuan-note/siyuan/issues/14973
Danield143296536eb
diff --git a/kernel/model/export.go b/kernel/model/export.goindex c71f9216c4..d2aed988d1 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -796,7 +796,7 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string} else if n.IsTextMarkType("code") {if nil != n.Next && ast.NodeText == n.Next.Type {// 行级代码导出 word 之后会有多余的零宽空格 https://github.com/siyuan-note/siyuan/issues/14825- n.Next.Tokens = bytes.TrimPrefix(n.Tokens, []byte(editor.Zwsp))+ n.Next.Tokens = bytes.TrimPrefix(n.Next.Tokens, []byte(editor.Zwsp))}}return ast.WalkContinue