mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 05:29:12 +08:00
🐛 导入 Markdown 文件报错 Fix https://github.com/siyuan-note/siyuan/issues/5781
This commit is contained in:
parent
d2624449a5
commit
3750ca12cc
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)
|
logging.LogErrorf("parse html block [%s] failed: %s", n.Tokens, pErr)
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
}
|
}
|
||||||
|
if 1 > len(htmlNodes) {
|
||||||
|
return ast.WalkContinue
|
||||||
|
}
|
||||||
if atom.Img == htmlNodes[0].DataAtom {
|
if atom.Img == htmlNodes[0].DataAtom {
|
||||||
imgHtmlBlocks[n] = htmlNodes[0]
|
imgHtmlBlocks[n] = htmlNodes[0]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user