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: 图表块的内容在数据库 `blocks` 表 `content` 字段中被转义 Fix https://github.com/siyuan-note/siyuan/issues/6326
Liang Ding95ae0c39c940
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.goindex a01d7e91b4..3c8b697749 100644--- a/kernel/treenode/node.go+++ b/kernel/treenode/node.go@@ -142,7 +142,12 @@ func NodeStaticContent(node *ast.Node) string {buf.Write(n.Tokens)case ast.NodeText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:- buf.Write(n.Tokens)+ tokens := n.Tokens+ if IsChartCodeBlockCode(n) {+ // 图表块的内容在数据库 `blocks` 表 `content` 字段中被转义 https://github.com/siyuan-note/siyuan/issues/6326+ tokens = html.UnescapeHTML(tokens)+ }+ buf.Write(tokens)case ast.NodeTextMark:if n.IsTextMarkType("tag") {buf.WriteByte('#')