fix: 修正 html 注释解析

This commit is contained in:
purocean
2021-06-24 23:51:19 +08:00
parent 21179def8b
commit 7d0b685418
+4 -1
View File
@@ -49,7 +49,10 @@ function htmlInline (state: StateInline): boolean {
const content = state.src.slice(pos, pos + match[0].length)
// ignore comment
if (content.startsWith('<!--')) { return false }
if (content.startsWith('<!--')) {
state.pos += match[0].length
return true
}
const tag = (match[1] || match[2] || '').toLowerCase()
if (!tag) { return false }