3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 15:15:44 +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
+2 -1
View File
@@ -17,7 +17,8 @@
`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.
showing it. It refuses an inline card a link marks, which Atlassian's schema does not allow, as
`unsupported-node-shape`.
- `htmlToAdf` reads `adfToHtml`'s HTML back to the document it came from, a carry element from its
`data-adf`. It reads that HTML as a browser's `innerHTML` writes it too (a raw `"` in text,
`&nbsp;`, a raw `<` or `>` in an attribute value) and as a form post sends it (`\r\n` for each