mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: 修正 html 注释解析
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user