Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
47a8b0c050
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue