Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Fix find-replace inline memo https://github.com/siyuan-note/siyuan/issues/13707

Daniel98819ca4c780
diff --git a/kernel/model/search.go b/kernel/model/search.go
index fdba7db623..8d8160b5ef 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -796,10 +796,6 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
n.TextMarkInlineMemoContent = r.ReplaceAllString(n.TextMarkInlineMemoContent, replacement)
}
}
-
- if "" == n.TextMarkInlineMemoContent {
- unlinks = append(unlinks, n)
- }
} else if n.IsTextMarkType("text") {
// Search and replace fails in some cases https://github.com/siyuan-note/siyuan/issues/10016
if !replaceTypes["text"] {