27 - a placed block carries no headroom, so the list's directive items write none #126

Merged
lilleman merged 4 commits from 27 into main 2026-09-24 00:29:00 +02:00
Showing only changes of commit 0fd412e426 - Show all commits
-1
View File
@@ -254,7 +254,6 @@ function tryList(node: AdfNode, path: ConvertErrorPath, depth: number, memo: Spe
return success({ headroom, spelling: 'list', text: lines.join('\n') })
}
// The directive form sinks each item's blocks a level below where the walk read them.
function directiveItems(items: readonly WalkedItem[]): PlacedBlock[] {
return items.map((item) => ({ ...directivePair(item.node, listItemOpener, joinBlocks(item.walk.blocks, 'directive')), node: item.node }))
}