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]
let endIndex = i + 1
while (
!(
tokens[endIndex].type === 'blockquote_close' &&
tokens[endIndex].level === open.level
) &&
endIndex < tokens.length
endIndex < tokens.length &&
(tokens[endIndex].type !== 'blockquote_close' ||
tokens[endIndex].level !== open.level)
)
endIndex++
if (endIndex === tokens.length) continue

Loading…
Cancel
Save