Flavour spec 1c: inline node syntaxes and marks
CI / gate (push) Successful in 3s

This commit is contained in:
2026-08-24 10:02:51 +02:00
parent 59a4a11add
commit 365a2d2ce0
2 changed files with 87 additions and 21 deletions
+5 -5
View File
@@ -38,11 +38,11 @@ isAdfDocument(v: unknown): v is AdfDocument
(AGENTS.md §3).
- `htmlToAdf(adfToHtml(doc))` equals `doc` — fidelity HTML cannot express rides `data-*`
attributes.
- Plain CommonMark is valid input to `markdownToAdf`, with two carve-outs — literal text
matching directive or pipe-table syntax is claimed (escapable — `spec/flavour.md`) — and one
gap: a CommonMark image fits only as its own title-less paragraph; mid-text and titled images
are error results. Converting back yields the library's canonical spelling, which round-trips
byte-identically.
- Plain CommonMark is valid input to `markdownToAdf`, with three carve-outs — literal text
matching directive, pipe-table or strikethrough syntax is claimed (escapable —
`spec/flavour.md`) — and one gap: a CommonMark image fits only as its own title-less paragraph;
mid-text and titled images are error results. Converting back yields the library's canonical
spelling, which round-trips byte-identically.
- Foreign HTML maps a documented element set; an unmappable element is an error, never a silent
drop. Well-formed HTML only — no tag-soup recovery.
- The emitted formats are semver surface (AGENTS.md §8).