3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 07:32:58 +01:00

Answer principles round 2: 1 🔴, 2 🟡 (0 misread); mutants killed, dead branches gone, data-* in its own module, linked images keep both targets, every URL sink named

This commit is contained in:
2026-10-24 00:53:04 +02:00
parent 0682bad5bc
commit 60f956ef3a
10 changed files with 256 additions and 119 deletions
+5 -5
View File
@@ -3,11 +3,11 @@
## Unreleased
- `adfToHtml` writes ADF as HTML: paragraphs, headings, lists, quotes, code blocks, rules, hard
breaks, external images, and `em`, `strong`, `code` and links as their elements, an attribute such
as `localId` as `data-local-id`. Every other node is an element of class `adf-carry` holding the
node's JSON in `data-adf` and showing its content, links included. A link's URL is written as the
ADF holds it, `javascript:` included: sanitize HTML from an author you do not trust before showing
it.
breaks, external images, and `em`, `strong`, `code` and links as their elements. A paragraph,
heading, quote, list, list item, code block or rule writes an attribute such as `localId` as
`data-local-id`. Every other node is an element of class `adf-carry` holding the node's JSON in
`data-adf` and showing its content, links included. Every URL is written as the ADF holds it,
`javascript:` included: sanitize HTML from an author you do not trust before showing it.
- **Breaking:** `losslessMarkdownToAdf` gives a `date`, `emoji`, `inlineCard`, `mention`, `status`
or `mediaInline` only the marks Atlassian's schema lets it hold: `**!adf:mention[@A]{id=…}**` now
reads as a plain mention. A link or directive mark around only nodes that cannot take it is