🐛 导入 Markdown 文件报错 Fix https://github.com/siyuan-note/siyuan/issues/5781
This commit is contained in:
parent
d2624449a5
commit
3750ca12cc
2 changed files with 4 additions and 1 deletions
2
app/stage/protyle/js/lute/lute.min.js
vendored
2
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue