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 and replace spaces https://github.com/siyuan-note/siyuan/issues/10231
Daniel04b1b3e3d5f8
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.goindex e5f836cb49..9d1967f788 100644--- a/kernel/treenode/node.go+++ b/kernel/treenode/node.go@@ -287,7 +287,10 @@ func NodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATilastSpace = falsereturn ast.WalkContinue})- return strings.TrimSpace(buf.String())++ // 这里不要 trim,否则无法搜索首尾空格+ // Improve search and replace for spaces https://github.com/siyuan-note/siyuan/issues/10231+ return buf.String()}func FirstLeafBlock(node *ast.Node) (ret *ast.Node) {