3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

Refuse the schema-forbidden shapes in the first step, carried or not

This commit is contained in:
2026-11-05 11:02:45 +01:00
committed by Lillem4n
parent 24247eff85
commit d55a249ef3
18 changed files with 132 additions and 47 deletions
+7
View File
@@ -27,6 +27,13 @@ the error's `path` naming the card, since Atlassian's schema gives a card no lin
`link` mark from that card before you write it with `0.3.0`; to keep the link's target, put the
link on a `text` node beside the card.
`0.3.0` refuses, as `unsupported-node-shape`, a block or non-text inline node holding `text`, and a
leaf block or non-text inline node holding non-empty `content`. Atlassian's schema gives no node
those. `adfToHtml` and `adfToPortableMarkdown` wrote such a node in `0.2.0`, and `adfToLosslessMarkdown`
wrote one inside a carried node; all three now refuse it, and `losslessMarkdownToAdf` and `htmlToAdf`
refuse a stored carry holding one. Read a stored document with `0.2.0`, remove what the error's
`path` names and write it with `0.3.0`, once.
## From `0.1.0` to `0.2.0`
Each call names the markdown it reads or writes: