mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 23:25:43 +01:00
Answer prose round 1: the refusal messages name what passed the bound, the decisions read one idea a sentence, and the changelog gives the readers' fix its own bullet
This commit is contained in:
+8
-7
@@ -83,13 +83,14 @@
|
||||
- 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.
|
||||
- Fix a document whose markdown would be longer than 536,870,888 characters, V8's longest string:
|
||||
`adfToLosslessMarkdown` and `adfToPortableMarkdown` refuse it as `unsupported-node-shape` on
|
||||
every engine, where they threw or ran out of memory.
|
||||
- Fix a directive that, written out as plain CommonMark, would be that long: `losslessMarkdownToAdf`
|
||||
refuses it as `unsupported-node-shape`, where a few megabytes of nested list lines ran it out of
|
||||
memory. The markdown readers return `unsupported-node-shape` where they threw past the longest
|
||||
string or array the JavaScript engine builds.
|
||||
- Fix a document whose markdown would be longer than 536870888 characters, V8's longest string:
|
||||
`adfToLosslessMarkdown` and `adfToPortableMarkdown` refuse it as `unsupported-node-shape` on every
|
||||
engine, where they threw or ran out of memory.
|
||||
- Fix a directive that, written out as plain CommonMark, would be longer than 536870888 characters:
|
||||
`losslessMarkdownToAdf` refuses it as `unsupported-node-shape`, where a few megabytes of nested
|
||||
list lines ran the call out of memory.
|
||||
- Fix the markdown readers past the longest string or array the JavaScript engine builds: they
|
||||
return `unsupported-node-shape` where they threw.
|
||||
- Fix deeply nested compact JSON in an `adf:` fence: `losslessMarkdownToAdf` refuses it as
|
||||
`unsupported-node-shape`, as it refuses any compact JSON there, where about a megabyte of it threw.
|
||||
- Add `adfToPortableMarkdown` and `portableMarkdownToAdf`, a lossy pair converting ADF to and from
|
||||
|
||||
Reference in New Issue
Block a user