Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Feb 3, 2024
1 parent 8f8a6fe commit 67a9964
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/node/markdown/plugins/githubAlerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67a9964

Please sign in to comment.