This commit is contained in:
Daniel 2025-01-03 09:30:41 +08:00
parent ea1081db5b
commit 98819ca4c7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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"] {