🎨 Find replace supports HTML blocks Fix https://github.com/siyuan-note/siyuan/issues/9539
This commit is contained in:
parent
5d2be98eab
commit
ec629d8e9b
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
|
|||
}
|
||||
|
||||
switch n.Type {
|
||||
case ast.NodeText, ast.NodeLinkDest, ast.NodeLinkText, ast.NodeLinkTitle, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:
|
||||
case ast.NodeText, ast.NodeLinkDest, ast.NodeLinkText, ast.NodeLinkTitle, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:
|
||||
if 0 == method {
|
||||
if bytes.Contains(n.Tokens, []byte(keyword)) {
|
||||
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte(keyword), []byte(replacement))
|
||||
|
|
Loading…
Add table
Reference in a new issue