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: Find replace supports HTML blocks Fix https://github.com/siyuan-note/siyuan/issues/9539
Danielec629d8e9b70
diff --git a/kernel/model/search.go b/kernel/model/search.goindex a9b7083c18..53a07f2a94 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -334,7 +334,7 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin}switch n.Type {- case ast.NodeText, ast.NodeLinkDest, ast.NodeLinkText, ast.NodeLinkTitle, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:+ case ast.NodeText, ast.NodeLinkDest, ast.NodeLinkText, ast.NodeLinkTitle, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:if 0 == method {if bytes.Contains(n.Tokens, []byte(keyword)) {n.Tokens = bytes.ReplaceAll(n.Tokens, []byte(keyword), []byte(replacement))