3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Answer stability round 1: 0 🔴, 5 🟡 (0 misread); derive the entity tables from one map, drop a dead branch, pin two refusals' places

This commit is contained in:
2026-10-31 02:13:10 +01:00
committed by Lillem4n
parent f68e2365e9
commit b9991fff59
5 changed files with 25 additions and 27 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export function readCarry(html: string, tag: StartTag, element: 'div' | 'span',
const shown = `${carryContent(node.value, element)}</${element}>`
const read = readsAsShown(html, tag.end, shown)
if (read.whole) return success({ end: read.at, node: node.value })
return refused('unmappable-html', `a carry element shows exactly what adfToHtml writes for its node, then </${element}>; to change the node, edit its ADF and write the HTML again: ${foundAt(html, read.at)}`, html, read.at, place)
return refused('unmappable-html', `a carry element shows what adfToHtml writes for its node, as it or a browser spells it, then </${element}>; to change the node, edit its ADF and write the HTML again: ${foundAt(html, read.at)}`, html, read.at, place)
}
function heldNode(json: string, levels: number, html: string, jsonAt: number): Read<AdfNode> {