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: ECharts、PlantUML 和 Mermaid 等图表块报错 Fix https://github.com/siyuan-note/siyuan/issues/5522
Liang Ding24743b68856b
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 7edc41c47c..0a7bf78b1f 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -616,7 +616,7 @@ func GetDoc(id string, index int, keyword string, mode int, size int) (blockCoun}// 支持代码块搜索定位 https://github.com/siyuan-note/siyuan/issues/5520- if ast.NodeCodeBlockCode == n.Type {+ if ast.NodeCodeBlockCode == n.Type && 0 < len(keywords) {// 搜索高亮text := string(n.Tokens)text = search.EncloseHighlighting(text, keywords, "__@mark__", "__mark@__", Conf.Search.CaseSensitive)