3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-14 12:30:26 +01:00

Refuse an inline card a link marks in adfToHtml as unsupported-node-shape

This commit is contained in:
2026-11-04 19:37:08 +01:00
parent 81d741d3b6
commit 2e7caeb6ae
7 changed files with 32 additions and 20 deletions
+4 -3
View File
@@ -441,9 +441,10 @@ it joins the second panel's `<a>` to that portable spelling.
Inside a carry element, a card a link marks links to the link's target, and shows its own URL as its
text where it has one, so both stay. A card showing only its name keeps its URL in `data-adf` alone.
Atlassian's schema gives no card a link mark, so only a hand-built document meets this;
`todo.md` item 133 settles, in 0.3.0, how such a card is written. Recorded 2026-10-24
without a panel of its own: it puts the second panel's `<a>` around the text a card shows.
Atlassian's schema gives no card a link mark, so only a hand-built document meets this, and
`adfToHtml` refuses such a card among the inline nodes it writes as `unsupported-node-shape`: no
element holds both its link and the card's own. Inside a carried block it shows as above, since a
carried node's JSON is not checked. Recorded 2026-10-24 without a panel of its own: it puts the second panel's `<a>` around the text a card shows.
A fifth panel (2026-11-04, three readers in the same roles, then four more for what the first three
split on) was asked how to write a mention, emoji, status, date and inline card, which until then