mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 Improve markdown importing https://github.com/siyuan-note/siyuan/issues/13097 https://github.com/siyuan-note/siyuan/issues/13080
This commit is contained in:
parent
14f5570558
commit
a0491cd4ff
13 changed files with 21 additions and 18 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue