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: https://github.com/siyuan-note/siyuan/issues/15654
Danielace97cbcf0e2
diff --git a/kernel/model/export.go b/kernel/model/export.goindex 9dc71de65e..5c90fe29d0 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -604,6 +604,21 @@ func Preview(id string, fillCSSVar bool) (retStdHTML string) {unlink.Unlink()}+ ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {+ if !entering {+ return ast.WalkContinue+ }++ if ast.NodeFootnotesRef == n.Type && nil != n.Next {+ // https://github.com/siyuan-note/siyuan/issues/15654+ nextText := n.NextNodeText()+ if strings.HasPrefix(nextText, "(") && strings.HasSuffix(nextText, ")") {+ n.InsertAfter(&ast.Node{Type: ast.NodeText, Tokens: []byte(editor.Zwsp)})+ }+ }+ return ast.WalkContinue+ })+md := treenode.FormatNode(tree.Root, luteEngine)tree = parse.Parse("", []byte(md), luteEngine.ParseOptions)// 使用实际主题样式值替换样式变量 Use real theme style value replace var in preview mode https://github.com/siyuan-note/siyuan/issues/11458