mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🐛 Unable to search replace hyperlink anchor text https://github.com/siyuan-note/siyuan/issues/10689
This commit is contained in:
parent
c752df919a
commit
45df03aede
@ -592,7 +592,7 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
||||
} else if n.IsTextMarkType("a") {
|
||||
if replaceTypes["aText"] {
|
||||
if 0 == method {
|
||||
if bytes.Contains(n.Tokens, []byte(keyword)) {
|
||||
if strings.Contains(n.TextMarkTextContent, keyword) {
|
||||
n.TextMarkTextContent = strings.ReplaceAll(n.TextMarkTextContent, keyword, replacement)
|
||||
}
|
||||
} else if 3 == method {
|
||||
|
Loading…
Reference in New Issue
Block a user