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

Answer stability round 2: a run that cannot be spelled parts at its hard breaks before the carry takes it, and the recipe bullet names the content it passes

This commit is contained in:
2026-10-09 11:21:56 +02:00
committed by Lillem4n
parent 852d010ff7
commit 1d05ee3df3
6 changed files with 60 additions and 29 deletions
+5 -4
View File
@@ -71,11 +71,12 @@
once the process had read a key holding a backslash
([V8 bug](https://issues.chromium.org/issues/521080746)).
- **Breaking:** a hard break inside emphasis, strike, a link or a directive mark reads holding no
marks, as Atlassian's schema requires, where every reader gave it the marks around it.
A link whose text is only hard breaks reads as an empty link text does, as its destination
linked, and `losslessMarkdownToAdf` refuses a directive mark wrapping only hard breaks as
marks, as Atlassian's schema requires, where every reader gave it the marks around it. A link
whose text is only hard breaks reads as an empty link text does, as its destination linked, and
`losslessMarkdownToAdf` refuses a directive mark wrapping only hard breaks as
`unsupported-node-shape`. `adfToLosslessMarkdown` writes a hard break holding marks as
`!adf:carry{json="…"}`. See `MIGRATION.md`.
`!adf:carry{json="…"}`, and both writers spell an emphasis or link across the hard breaks inside
it once, `_a\` then `b_`, where they closed and reopened it. See `MIGRATION.md`.
- Fix a cyclic document, in which an object holds itself: `adfToLosslessMarkdown` and
`adfToPortableMarkdown` refuse it as `not-an-adf-document` and `isAdfDocument` returns `false`,
where all three hung.