Corpus 1d3: the inline-node and mark pairs #8

Merged
lilleman merged 2 commits from corpus-inline-nodes into main 2026-08-24 14:40:58 +02:00
5 changed files with 72 additions and 8 deletions
Showing only changes of commit 2fbe913101 - Show all commits
+26 -2
View File
@@ -11,7 +11,19 @@
"type": "textColor" "type": "textColor"
} }
], ],
"text": "Overdue", "text": "Over",
"type": "text"
},
{
"marks": [
{
"attrs": {
"color": "#a54800"
},
"type": "textColor"
}
],
"text": "due",
"type": "text" "type": "text"
}, },
{ {
@@ -40,9 +52,21 @@
"type": "underline" "type": "underline"
} }
], ],
"text": "signed", "text": "signed by ",
"type": "text" "type": "text"
}, },
{
"attrs": {
"id": "01a032c3-7a7c-775f-a730-2d79351338b4",
"text": "@Mikael"
},
"marks": [
{
"type": "underline"
}
],
"type": "mention"
},
{ {
"text": " on the 2", "text": " on the 2",
"type": "text" "type": "text"
+1 -1
View File
@@ -1,3 +1,3 @@
:textColor[Overdue]{color="#ae2e24"} since the H:subsup[2]{type=sub}O test, :underline[signed] on the 2:subsup[nd]{type=sup} of May. :textColor[Over]{color="#ae2e24"}:textColor[due]{color="#a54800"} since the H:subsup[2]{type=sub}O test, :underline[signed by :mention[@Mikael]{id=01a032c3-7a7c-775f-a730-2d79351338b4}] on the 2:subsup[nd]{type=sup} of May.
:border[:mediaInline{collection=contentId-98237 id=01a032c3-7a90-70c9-88f6-c60f710eda07}]{color="#091e42" size=2} :border[:mediaInline{collection=contentId-98237 id=01a032c3-7a90-70c9-88f6-c60f710eda07}]{color="#091e42" size=2}
@@ -27,6 +27,38 @@
], ],
"type": "paragraph" "type": "paragraph"
}, },
{
"content": [
{
"text": "Space before the break ",
"type": "text"
},
{
"type": "hardBreak"
},
{
"text": "survives.",
"type": "text"
}
],
"type": "paragraph"
},
{
"content": [
{
"text": "Space after the break",
"type": "text"
},
{
"type": "hardBreak"
},
{
"text": " survives too.",
"type": "text"
}
],
"type": "paragraph"
},
{ {
"content": [ "content": [
{ {
@@ -4,4 +4,10 @@ Trailing space held:text{text=" "}
:text{text="\t"}Tabbed at the block edge. :text{text="\t"}Tabbed at the block edge.
Space before the break:text{text=" "}\
survives.
Space after the break\
:text{text=" "}survives too.
Kept _:text{text=" "}inside:text{text=" "}_, exactly. Kept _:text{text=" "}inside:text{text=" "}_, exactly.
+7 -5
View File
@@ -45,7 +45,7 @@ detail is settled at its own milestone.
pick here. pick here.
- [x] **1d1 — The CommonMark subset**: blockquote, bulletList, codeBlock, heading, orderedList, - [x] **1d1 — The CommonMark subset**: blockquote, bulletList, codeBlock, heading, orderedList,
paragraph, rule, listItem, hardBreak, text, code spans, and the `code`, `em`, `link`, paragraph, rule, listItem, hardBreak, text, code spans, and the `code`, `em`, `link`,
`strike` and `strong` marks — one mark per text node; nesting is 1d5's. `strike` and `strong` marks — one mark per text node; nesting is 1d3's.
- [x] **1d2 — Block nodes**: panel, expand/nestedExpand, the media family and the CommonMark - [x] **1d2 — Block nodes**: panel, expand/nestedExpand, the media family and the CommonMark
image shape, both table forms, task and decision lists, layout, extensions, syncBlock — image shape, both table forms, task and decision lists, layout, extensions, syncBlock —
with the reserved `marks` attribute and the fence lengths nesting forces. with the reserved `marks` attribute and the fence lengths nesting forces.
@@ -54,10 +54,12 @@ detail is settled at its own milestone.
`:text{text="…"}` whitespace spelling. `:text{text="…"}` whitespace spelling.
- [ ] **1d4 — Opaque carry** (§3): an unknown node in both positions, the reserved `adf` info - [ ] **1d4 — Opaque carry** (§3): an unknown node in both positions, the reserved `adf` info
string, and the `codeBlock` whose language is `adf`. string, and the `codeBlock` whose language is `adf`.
- [ ] **1d5 — Carve-outs and combinations**: the three carve-outs and their escapes, mark - [ ] **1d5 — Carve-outs and combinations**: the three carve-outs and their escapes, mark runs —
nesting order and the runs a carry breaks, attribute canonicalization, documents the longest-run rule, attributes included — and the runs a carry breaks, a mark spelling
combining nodes rather than isolating one, and a paragraph line inside a container body that cannot open where it sits (`un**-real**istic`; the spec owes the carry a trigger),
shaped like a closing fence (`:::`, `::: x`). attribute canonicalization, a pipe cell's whitespace edges and `\u007c` for a `|` inside a
quoted attribute value, documents combining nodes rather than isolating one, and a paragraph
line inside a container body shaped like a closing fence (`:::`, `::: x`).
- [ ] **1d6 — Input normalization**: one-way markdown→ADF fixtures, not pairs — setext - [ ] **1d6 — Input normalization**: one-way markdown→ADF fixtures, not pairs — setext
headings, indented code, loose lists, `*`/`+` bullets, entity references, soft wraps. headings, indented code, loose lists, `*`/`+` bullets, entity references, soft wraps.
- [ ] **1d7 — Error input**: also one-way, a markdown input per named error, asserting only - [ ] **1d7 — Error input**: also one-way, a markdown input per named error, asserting only