mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
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
Add a link
Reference in a new issue