mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve find-replace of text containing escape characters https://github.com/siyuan-note/siyuan/issues/14173
This commit is contained in:
parent
060eb0fd61
commit
f99025d468
1 changed files with 5 additions and 1 deletions
|
@ -588,7 +588,11 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
}
|
||||
|
||||
if replaceTextNode(n, method, keyword, replacement, r, luteEngine) {
|
||||
unlinks = append(unlinks, n)
|
||||
if nil != n.Parent && ast.NodeBackslash == n.Parent.Type {
|
||||
unlinks = append(unlinks, n.Parent)
|
||||
} else {
|
||||
unlinks = append(unlinks, n)
|
||||
}
|
||||
}
|
||||
case ast.NodeLinkDest:
|
||||
if !replaceTypes["imgSrc"] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue