From 98819ca4c780ab0064a255aa1df0c42c065707ef Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 3 Jan 2025 09:30:41 +0800 Subject: [PATCH] :art: Fix find-replace inline memo https://github.com/siyuan-note/siyuan/issues/13707 --- kernel/model/search.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index fdba7db62..8d8160b5e 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"] {