From 46ce0f75994bbda33e0aadf2d63b57677675c8de Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 18 Sep 2022 20:07:38 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=90=9C=E7=B4=A2=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9D=97=E5=BC=95=E9=94=9A=E6=96=87=E6=9C=AC?= =?UTF-8?q?=20Fix=20https://github.com/siyuan-note/siyuan/issues/5903?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/search.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/model/search.go b/kernel/model/search.go index cd1ef05d2..763fef64d 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -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 })