🎨 搜索替换支持块引锚文本 Fix https://github.com/siyuan-note/siyuan/issues/5903
This commit is contained in:
parent
afe14a990f
commit
46ce0f7599
1 changed files with 6 additions and 0 deletions
|
@ -175,6 +175,12 @@ func FindReplace(keyword, replacement string, ids []string) (err error) {
|
|||
if strings.Contains(n.TextMarkInlineMemoContent, keyword) {
|
||||
n.TextMarkInlineMemoContent = strings.ReplaceAll(n.TextMarkInlineMemoContent, keyword, replacement)
|
||||
}
|
||||
if strings.Contains(n.TextMarkATitle, keyword) {
|
||||
n.TextMarkATitle = strings.ReplaceAll(n.TextMarkATitle, keyword, replacement)
|
||||
}
|
||||
if strings.Contains(n.TextMarkAHref, keyword) {
|
||||
n.TextMarkAHref = strings.ReplaceAll(n.TextMarkAHref, keyword, replacement)
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue