From e2fe71de8ac9ddb9aec0d9dafc12f715c8cb3472 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 4 Nov 2026 19:42:42 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20tell=20a=20?= =?UTF-8?q?caller=20who=20only=20holds=20the=20ADF=20to=20keep=20it=20read?= =?UTF-8?q?-only,=20and=20give=20the=20real=20reason?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++-- README.md | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f55f943..06f1af4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,8 +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. It refuses an inline card a link marks, which Atlassian's schema does not allow, as - `unsupported-node-shape`. + showing it. It refuses an inline card a link marks, as `unsupported-node-shape`: Atlassian's schema gives a + card no link mark, and HTML nests no link in a link. - `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, ` `, a raw `<` or `>` in an attribute value) and as a form post sends it (`\r\n` for each diff --git a/README.md b/README.md index 2680eeb..4cb4cc2 100644 --- a/README.md +++ b/README.md @@ -646,8 +646,9 @@ Every call can raise these: twice, a block or a non-text inline node holding `text`, or a leaf block or a non-text inline node holding `content`. Keep the ADF and show the document read-only; where you built the ADF, fix what the message names. -- **Writing, in `adfToHtml`**: an inline card marked by a link, which Atlassian's schema does not - allow. Remove the mark; where you hold the ADF, the message's path names the card. +- **Writing, in `adfToHtml`**: an inline card marked by a link: Atlassian's schema gives a card no + link mark, and HTML nests no link in a link. Keep the ADF and show the document read-only; where + you built the ADF, remove the link mark from the card the error's `path` names. - **Writing, in `adfToPortableMarkdown`**: a line or task list the portable writer cannot spell. This is a bug in this library: report it. - **Past the engine's longest string**: