mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 22:55:44 +01:00
Read a GFM pipe table's short rows, rows without a pipe and one column in portableMarkdownToAdf
This commit is contained in:
@@ -22,6 +22,14 @@ class that keeps its fields behind getters (Vue 2, MobX) is refused too: hand in
|
||||
`JSON.parse(JSON.stringify(document))`. A document holding more than 10,000,000 JSON values is
|
||||
`unsupported-node-shape`.
|
||||
|
||||
`portableMarkdownToAdf` reads more of GFM's pipe table. A body row holding fewer cells than the
|
||||
header is padded with empty cells, where `0.3.1` returned `malformed-pipe-table`. A line holding no
|
||||
`|` after a table is a row of one cell, where it ended the table and read as a paragraph. `a |` over
|
||||
`--- |` is a one-column table, where it read as a paragraph. A markdown string that relied on the
|
||||
old reading takes a blank line between the table and the paragraph. `losslessMarkdownToAdf` reads
|
||||
the first two as before, and now returns `malformed-pipe-table` for `a |` over `--- |` too, as it
|
||||
does for any table without leading pipes.
|
||||
|
||||
## From `0.2.0` to `0.3.0`
|
||||
|
||||
Every reader skips code text when it spells a mark other than a link, and `losslessMarkdownToAdf`
|
||||
|
||||
Reference in New Issue
Block a user