Daniel 2024-11-10 12:04:56 +08:00
parent 14f5570558
commit a0491cd4ff
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 21 additions and 18 deletions

View file

@ -1137,7 +1137,7 @@ func imgHtmlBlock2InlineImg(tree *parse.Tree) {
alt := domAttrValue(htmlImg, "alt")
title := domAttrValue(htmlImg, "title")
p := &ast.Node{Type: ast.NodeParagraph, ID: n.ID}
p := treenode.NewParagraph(n.ID)
img := &ast.Node{Type: ast.NodeImage}
p.AppendChild(img)
img.AppendChild(&ast.Node{Type: ast.NodeBang})