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

Carry a known node standing where no section spells it

This commit is contained in:
2026-08-26 21:50:03 +02:00
parent 60417f9943
commit 3ef18b277d
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))
}