Carry a known node standing where no section spells it
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-26 21:50:03 +02:00
parent e5502b28c4
commit 8b8530a4a8
5 changed files with 8 additions and 15 deletions
-3
View File
@@ -91,9 +91,6 @@ function emitBlock(node: AdfNode, path: ConvertErrorPath, depth: number): Result
if (node.type === 'table') return emitTable(node, directive, path, depth)
return emitDirectiveBlock(node, directive, path, depth)
}
if (node.type === 'hardBreak' || node.type === 'listItem' || node.type === 'text') {
return failure('unsupported-node-shape', `a ${node.type} node cannot stand where a block belongs`, path)
}
return commonMarkLine(carriedBlock(node, path))
}