3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-14 20:40:25 +01:00

Give the leaf block an arg slot, and drop the branch the leaf collapse orphaned

This commit is contained in:
2026-08-27 15:41:38 +02:00
parent 8fe8760c78
commit a36e3e1a37
4 changed files with 9 additions and 2 deletions
-1
View File
@@ -132,7 +132,6 @@ function emitDirectiveBlock(node: AdfNode, directive: BlockDirective, path: Conv
}
function emitInlineBody(content: readonly AdfNode[], path: ConvertErrorPath): Result<EmittedBody> {
if (content.length === 0) return success({ fenceColons: 0, text: '' })
const line = emitInlineLine(content, 'paragraph', path)
if (!line.ok) return line
return success({ fenceColons: 0, text: line.value })