mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🐛 Search and replace fails in some cases https://github.com/siyuan-note/siyuan/issues/10016
This commit is contained in:
parent
cbe09a1fd9
commit
e11b9356c3
1 changed files with 7 additions and 0 deletions
|
|
@ -562,6 +562,13 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
n.TextMarkInlineMemoContent = r.ReplaceAllString(n.TextMarkInlineMemoContent, replacement)
|
||||
}
|
||||
}
|
||||
} else if n.IsTextMarkType("text") {
|
||||
// Search and replace fails in some cases https://github.com/siyuan-note/siyuan/issues/10016
|
||||
if !replaceTypes["text"] {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
replaceNodeTextMarkTextContent(n, method, keyword, replacement, r)
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue