3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Answer architecture round 1: the comments the panel found as bare spec pointers state their rule, and the spec cites no plan item

This commit is contained in:
2026-10-04 22:55:08 +02:00
committed by Lillem4n
parent 35b37de47f
commit 88ec96556c
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export function writeMarkdown(document: AdfDocument, flavour: Flavour): Result<s
return success(text === '' ? '' : `${text}\n`)
}
// headroom: the least slack any depth guard below the walk has.
// headroom: the nesting levels the deepest node below may still spend before the 500-level guard refuses it.
function walkBlocks(nodes: readonly AdfNode[], path: ConvertErrorPath, depth: number, writing: Writing): Result<PlacedBlocks> {
let headroom = largestNesting - depth
if (headroom < 0) return tooDeep(path)