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 search result highlight and positioning https://github.com/siyuan-note/siyuan/issues/8274
Liang Ding78c4e7884328
diff --git a/kernel/model/file.go b/kernel/model/file.goindex e397c3b4fc..2c7ff6b161 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -674,6 +674,9 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[svar keywords []stringif 0 == queryMethod || 1 == queryMethod { // 只有关键字搜索和查询语法搜索才支持高亮+ if 0 == queryMethod {+ query = stringQuery(query)+ }typeFilter := buildTypeFilter(queryTypes)keywords = highlightByQuery(query, typeFilter, rootID)}