🐛 Regular expression search and replace results in nested paragraphs https://github.com/siyuan-note/siyuan/issues/11188

This commit is contained in:
Daniel 2024-04-30 00:19:30 +08:00
parent 8ef353cd6f
commit 9172128b32
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -804,7 +804,7 @@ func replaceTextNode(text *ast.Node, method int, keyword string, replacement str
}
var replaceNodes []*ast.Node
for rNode := tree.Root.FirstChild; nil != rNode; rNode = rNode.Next {
for rNode := tree.Root.FirstChild.FirstChild; nil != rNode; rNode = rNode.Next {
replaceNodes = append(replaceNodes, rNode)
}