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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user