mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 14:45:44 +01:00
Answer prose round 1: 1 🔴, 6 🟡 (0 misread); state the refusal beside the carry rule, date it, and fix the cause bullets and the message
This commit is contained in:
+4
-4
@@ -94,7 +94,7 @@ later release writes it as its own element.
|
||||
- A hard break is `<br>`, and so is a line feed in text outside a `<div>`'s code block.
|
||||
- Text a link marks is `<a href="…" title="…">` around it, or the text alone where HTML cannot
|
||||
hold the link's `href` or `title`; a `title` that is no string is left out. A card is a link to
|
||||
its URL; inside a carry element, to the target of a link marking it.
|
||||
the target of a link marking it, else to its URL.
|
||||
- An external image with no link to another target is a link to its URL. An image marked by a
|
||||
link to another target shows as portable markdown writes it inline. First comes the link,
|
||||
around the image's `alt`, else the link's target, else the image's URL. Then comes ` (image)`,
|
||||
@@ -107,7 +107,9 @@ later release writes it as its own element.
|
||||
- Characters HTML cannot hold are dropped.
|
||||
- A node rides the carry where it holds a mark or a key its element does not write, an attribute
|
||||
its type does not hold as that kind, an empty `attrs`, `content` or `marks`, or a value its
|
||||
element cannot hold:
|
||||
element cannot hold. The exception is an inline card a link marks, which `adfToHtml` refuses as
|
||||
`unsupported-node-shape`: Atlassian's schema gives a card no link mark, and HTML nests no link in
|
||||
a link.
|
||||
- text holding no character, or a character HTML cannot hold; text holding a mark twice, or a
|
||||
mark with attributes besides a link's `href` and `title`;
|
||||
- an unmarked text node straight after one written as plain text, which would read back as one;
|
||||
@@ -155,8 +157,6 @@ that node in either spelling: an edit there would be lost, so it is `unmappable-
|
||||
is not the day its `data-timestamp` names, a card without `data-data` whose `href` and text are
|
||||
not one URL, and a card with `data-data` whose `href` is not the URL its `data` holds or whose
|
||||
text is not its name, else that URL, are `unmappable-html`.
|
||||
- `adfToHtml` refuses an inline card a link marks, which Atlassian's schema gives no link mark, as
|
||||
`unsupported-node-shape`.
|
||||
- A `data-*` attribute that its element does not take, such as `data-level` on `<h1>`, or that holds
|
||||
a value outside its attribute's kind or not written as compact JSON, is `unsupported-node-shape`.
|
||||
- A carry element's `data-adf` holding invalid JSON is `unmappable-html`. JSON that is no ADF node,
|
||||
|
||||
Reference in New Issue
Block a user