mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 06:35:44 +01:00
Read two lists a link reference definition parts as two lists, and put the changelog's breaking entries first
This commit is contained in:
@@ -239,7 +239,7 @@ Serves Goals 1, 4 and 5.
|
||||
without a delimiter row, is an error result; each can be kept literal (`spec/flavour.md`).
|
||||
- A document any reader built, written back with `adfToLosslessMarkdown`, takes the library's
|
||||
canonical spelling, which round-trips byte-identically.
|
||||
- Seven CommonMark spellings parse without an error and build a document the reference
|
||||
- Six CommonMark spellings parse without an error and build a document the reference
|
||||
implementation renders differently. Four because ADF holds no node for what it renders:
|
||||
- An empty link text reads as its destination, `[](/url)` as `/url` linked to `/url`, and `[]()`
|
||||
as nothing. A link text holding only hard breaks reads the same, followed by its hard breaks.
|
||||
@@ -253,12 +253,11 @@ Serves Goals 1, 4 and 5.
|
||||
- An image's title becomes its caption when the image stays an image, and its link's title when
|
||||
it becomes linked alt text. Inside another link, the title is dropped.
|
||||
|
||||
And three more: a shortcut reference matching its definition only under Unicode case folding
|
||||
stays unresolved, two lists a link reference definition parts stay one list against CommonMark's
|
||||
two, and a link whose text holds an autolink keeps the inner link and leaves the outer brackets
|
||||
literal text, which the spec requires and the reference itself breaks, nesting one `<a>` in the
|
||||
other. `corpus/commonmark-spec/exceptions.json` pins the first four `node-model` where the suite
|
||||
reaches them and the fifth `pending`; the suite holds no example of the last two.
|
||||
And two more: a shortcut reference matching its definition only under Unicode case folding
|
||||
stays unresolved, and a link whose text holds an autolink keeps the inner link and leaves the
|
||||
outer brackets literal text, which the spec requires and the reference itself breaks, nesting one
|
||||
`<a>` in the other. `corpus/commonmark-spec/exceptions.json` pins the first four `node-model`
|
||||
where the suite reaches them and the fifth `pending`; the suite holds no example of the last.
|
||||
- Not every document converts back: `adfToLosslessMarkdown` refuses a document nesting past 500
|
||||
levels, and the node shapes the `unsupported-node-shape` row lists. Show the refusal and keep the
|
||||
document read-only; saving markdown you could not produce is the loss the round-trip exists to
|
||||
|
||||
Reference in New Issue
Block a user