mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-17 05:40:26 +01:00
Refuse the schema-forbidden shapes in the first step, carried or not
This commit is contained in:
+3
-6
@@ -436,8 +436,7 @@ the shown code keeps the class its code block's own element takes.
|
||||
Inside a carry element, an image marked by a link to another target shows as portable markdown
|
||||
writes it inline (§A linked image standing inline in portable markdown, its link to another target,
|
||||
is written `[alt](href) ([image](url))`), so both targets stay; Goal 7 counts them as content. A link
|
||||
marking a node that shows a note goes around the note, and an image's own `text`, outside Atlassian's
|
||||
schema, shows first, as every carried node's does. Recorded 2026-10-24 without a panel of its own:
|
||||
marking a node that shows a note goes around the note. Recorded 2026-10-24 without a panel of its own:
|
||||
it joins the second panel's `<a>` to that portable spelling.
|
||||
|
||||
HTML nests no `<a>` in an `<a>`, so no element can hold both a card's URL and the target of a link
|
||||
@@ -762,10 +761,8 @@ writer refuses alike, with one code, message and path, wherever the shape stands
|
||||
too, and a carry reader refuses it with the same code and the writers' message after its holder's
|
||||
name. The first step refuses an `inlineCard` with a `link` mark as `unsupported-node-shape`: the
|
||||
schema gives a card the `annotation` mark alone (§The node tables answer to Atlassian's schema),
|
||||
and HTML nests no `<a>` in an `<a>`. `adfToLosslessMarkdown` still refuses two more, on a node not
|
||||
riding the carry: a block or non-text inline node holding `text`, and a leaf block or non-text
|
||||
inline node holding a non-empty `content`. `todo.md` item 167 moves them, and until it ships this entry does
|
||||
not hold for them.
|
||||
and HTML nests no `<a>` in an `<a>`. It also refuses a block or non-text inline node holding `text`,
|
||||
and a leaf block or non-text inline node holding a non-empty `content`.
|
||||
|
||||
Nothing else joins the first step. Nothing refuses a node type, mark or attribute the schema does
|
||||
not name (§Unknown nodes ride the carry), a known node where no section spells it, or a mark a node
|
||||
|
||||
@@ -667,3 +667,20 @@ Read most (opens and searches):
|
||||
- `src/adf/shown-text.ts` 3
|
||||
- `src/html/parse/inline.ts` 3
|
||||
- `src/html/parse/source.ts` 3
|
||||
|
||||
## Reading cost, chunk 6b022a1028b9, finished 2026-11-05T09:52:21Z
|
||||
|
||||
253907 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `ci.sh` 8
|
||||
- `docs/decisions.md` 8
|
||||
- `src/conformance/corpus.test.ts` 8
|
||||
- `todo.md` 8
|
||||
- `AGENTS.md` 6
|
||||
- `README.md` 5
|
||||
- `browser-tests/run.js` 4
|
||||
- `.gitignore` 3
|
||||
- `corpus/README.md` 3
|
||||
- `package.json` 3
|
||||
|
||||
Reference in New Issue
Block a user