🎨 改进导入 Markdown 时 <img>
标签的处理 Fix https://github.com/siyuan-note/siyuan/issues/6480
This commit is contained in:
parent
df2d99f152
commit
8e8940c1b7
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