27 - directiveItems loses the comment that explained the removed subtraction
CI / gate (push) Successful in 36s
CI / publish (push) Has been skipped

This commit is contained in:
2026-09-24 00:19:05 +02:00
parent 3d0f82cbd4
commit 0fd412e426
-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') }) 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[] { function directiveItems(items: readonly WalkedItem[]): PlacedBlock[] {
return items.map((item) => ({ ...directivePair(item.node, listItemOpener, joinBlocks(item.walk.blocks, 'directive')), node: item.node })) return items.map((item) => ({ ...directivePair(item.node, listItemOpener, joinBlocks(item.walk.blocks, 'directive')), node: item.node }))
} }