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

Lead the code block, empty-key, carry fence, text break and carry-in-mark refusals with their fix

This commit is contained in:
2026-10-03 15:12:51 +02:00
parent 1d5ffc5672
commit 91879d01b1
5 changed files with 25 additions and 12 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export function readCarriedBlock(type: string, body: string, depth: number): Rea
}
const read = readCarriedJson(body, 'two-space', largestNesting - depth, type)
if (read.fault !== undefined || type !== '' || !infoStringCarries(read.value.type)) return read
return { fault: unsupportedNodeShape(`the carry fence names a type its info string carries: spell it ${carryFencePrefix}${read.value.type}`) }
return { fault: unsupportedNodeShape(`the ${carryFencePrefix} fence holds a type its info string can carry: spell the fence ${carryFencePrefix}${read.value.type} and drop type from the JSON`) }
}
export function readCarriedInline(span: DirectiveSpan): Read<AdfNode> | undefined {