Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-11-04 20:58:10 +08:00
commit 47a8b0c050

View file

@ -657,8 +657,12 @@ func imgHtmlBlock2InlineImg(tree *parse.Tree) {
if 1 > len(htmlNodes) {
return ast.WalkContinue
}
if atom.Img == htmlNodes[0].DataAtom {
imgHtmlBlocks[n] = htmlNodes[0]
for _, htmlNode := range htmlNodes {
if atom.Img == htmlNode.DataAtom {
imgHtmlBlocks[n] = htmlNode
break
}
}
}
return ast.WalkContinue