5b2: tick the item and move its text to the history
CI / gate (push) Successful in 9s

This commit is contained in:
2026-09-03 17:52:31 +02:00
parent 222dcc5aab
commit 2578e342cf
2 changed files with 16 additions and 9 deletions
+15
View File
@@ -412,3 +412,18 @@ Under **3 — `markdownToAdf` (`0.1.0`)**:
`unsupported-node-shape` stays one code across the two directions, `unmappable-html` names
the version rather than the element, and a direction that reads a source returns the
narrowed error type.
- [x] **5b2 — The error messages.** Most state the rule and leave the violation to be inferred —
`a text node holds text` for a node holding none — so `rule: violation` becomes house style
across the sites that do. `not-an-adf-document` gives one sentence of eight words to `null`,
a string, a missing `version`, a `type` that is not `doc` and a REST envelope around the
document; naming the check that failed makes the highest-frequency integrator mistake
self-diagnosing without the library naming a REST shape (§7). The three carve-out claim
messages name the escape that unclaims the line — `\|`, `\~~`, `\:::` — which today only
`spec/flavour.md` holds. `unmappable-html` reads as §8 now frames it: this version converts
no raw HTML, never a permanent judgment on the element.
Thirty-odd sites gained the violation clause and §8 gained the house style. `isAdfDocument`
parts into `adfDocumentFault`, the guard reading it, so the first failing check is the
message — the wrapper mistake names the key it found. Two carve-outs claim a line, not
three: a matched `~~` pair spells `strike` silently, so nothing refuses it and no message
names `\~~`; the escape lands on the directive-line and pipe-table refusals a prose line
hits. `a pipe table row holds 1 cells` gained its plural.