chore: fix typo

pull/3542/head
Divyansh Singh 2 years ago
parent 8f8a6feb05
commit 67a9964c4e

@ -26,11 +26,9 @@ export const gitHubAlertsPlugin = (
const open = tokens[startIndex] const open = tokens[startIndex]
let endIndex = i + 1 let endIndex = i + 1
while ( while (
!( endIndex < tokens.length &&
tokens[endIndex].type === 'blockquote_close' && (tokens[endIndex].type !== 'blockquote_close' ||
tokens[endIndex].level === open.level tokens[endIndex].level !== open.level)
) &&
endIndex < tokens.length
) )
endIndex++ endIndex++
if (endIndex === tokens.length) continue if (endIndex === tokens.length) continue

Loading…
Cancel
Save