27 - the level the list's directive form spends is stated at the check that pays it
CI / gate (push) Successful in 30s
CI / publish (push) Successful in 5s

This commit was merged in pull request #126.
This commit is contained in:
2026-09-24 00:19:45 +02:00
parent 0fd412e426
commit b1dc6a1f45
2 changed files with 5 additions and 5 deletions
+1
View File
@@ -246,6 +246,7 @@ function tryList(node: AdfNode, path: ConvertErrorPath, depth: number, memo: Spe
for (const [offset, item] of walked.entries()) {
const line = tryListItemLines(item.walk.blocks, ordered ? `${start + offset}. ` : '- ')
if (line === undefined) {
// The directive form spends a level the walk did not count.
if (headroom < 1) return tooDeep(path)
return emitDirectiveBlock(node, ordered ? blockNodes.orderedList : blockNodes.bulletList, path, depth, () => success({ blocks: directiveItems(walked), headroom: headroom - 1 }))
}