This commit is contained in:
Liang Ding 2022-09-01 17:01:08 +08:00
parent d2624449a5
commit 3750ca12cc
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -606,6 +606,9 @@ func imgHtmlBlock2InlineImg(tree *parse.Tree) {
logging.LogErrorf("parse html block [%s] failed: %s", n.Tokens, pErr)
return ast.WalkContinue
}
if 1 > len(htmlNodes) {
return ast.WalkContinue
}
if atom.Img == htmlNodes[0].DataAtom {
imgHtmlBlocks[n] = htmlNodes[0]
}