Refuse two adjacent lists on the marker spelling, not the node type
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-30 20:48:04 +02:00
parent 99581c8f60
commit 7fc0cdb827
6 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export function parseBlocks(markdown: string): ParsedBlocks {
function readLine(walk: Walk, line: Line): void {
const matched = matchContainers(walk, line)
// A leaf that swallows whole lines takes the marker too: no container opens inside a code or HTML block.
// CommonMark: no container opens inside an open code or HTML block.
if (matched.depth === walk.stack.length && swallowsLines(walk.leaf)) {
readBlockLine(walk, matched.rest)
return