From 67a9964c4e6ffdb0e644624d075b8dd20f477686 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:55:36 +0530 Subject: [PATCH] chore: fix typo --- src/node/markdown/plugins/githubAlerts.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/node/markdown/plugins/githubAlerts.ts b/src/node/markdown/plugins/githubAlerts.ts index 48047b19..817002ed 100644 --- a/src/node/markdown/plugins/githubAlerts.ts +++ b/src/node/markdown/plugins/githubAlerts.ts @@ -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