3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Widen the carry's spec trigger to the position, and name the raw attribute value 2e must escape

This commit is contained in:
2026-08-26 16:40:15 +02:00
parent 62da0c7082
commit 5da0a3afdd
4 changed files with 23 additions and 15 deletions
+5 -2
View File
@@ -113,8 +113,11 @@ literal-text fallback — a typo that reparses as prose is the silent loss §2 r
## The opaque carry (AGENTS.md §3)
A node type the library does not know rides as its raw JSON and restores to a deep-equal node.
Block and inline positions canonicalize differently, each fitting where it sits:
A node no section spells where it stands — an unknown type, or a known one whose spelling belongs
to the other position — rides as its raw JSON and restores to a deep-equal node. `hardBreak`,
`listItem` and `text` where a block belongs are the exception: their spelling lives inside another
node's body, so the misplacement is a named error. Block and inline positions canonicalize
differently, each fitting where it sits:
- **Block position**: a fenced code block with info string `adf`, body = the node's JSON —
two-space indent, object keys sorted.