We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f8a6fe commit 67a9964Copy full SHA for 67a9964
src/node/markdown/plugins/githubAlerts.ts
@@ -26,11 +26,9 @@ export const gitHubAlertsPlugin = (
26
const open = tokens[startIndex]
27
let endIndex = i + 1
28
while (
29
- !(
30
- tokens[endIndex].type === 'blockquote_close' &&
31
- tokens[endIndex].level === open.level
32
- ) &&
33
- endIndex < tokens.length
+ endIndex < tokens.length &&
+ (tokens[endIndex].type !== 'blockquote_close' ||
+ tokens[endIndex].level !== open.level)
34
)
35
endIndex++
36
if (endIndex === tokens.length) continue
0 commit comments