mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 06:35: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:
+8
-4
@@ -388,10 +388,14 @@ and 7. Valid while a refusal is a result and the caller can fix the markdown it
|
||||
|
||||
Where GFM's reading of a shape drops content, `portableMarkdownToAdf` refuses the shape. A pipe
|
||||
table body row holding more cells than its header is `malformed-pipe-table`, where GFM cuts the
|
||||
extra cells. Cutting the cells breaks Goal 7. Building a table GFM does not, such as a wider one, breaks
|
||||
Goal 4. A refusal builds no table, but it still breaks Goal 4: a bot gets an error for a row GitHub
|
||||
renders. Goal 7 is a Maintain goal, holding whatever it costs, so it wins over Goal 4, an Achieve
|
||||
goal.
|
||||
extra cells. Cutting the cells breaks Goal 7. Building a table GFM does not, such as a wider one,
|
||||
breaks Goal 4. A refusal builds no table, but it still breaks Goal 4: a bot gets an error for a row
|
||||
GitHub renders. Goal 7 is a Maintain goal, holding whatever it costs, so it wins over Goal 4, an
|
||||
Achieve goal.
|
||||
|
||||
A shape whose GFM reading drops nothing is read as GFM reads it: a short body row is padded with
|
||||
empty cells, a line holding no `|` after the table is a row of one cell, and `a |` over `--- |` is
|
||||
a one-column table.
|
||||
|
||||
## The HTML dialect
|
||||
|
||||
|
||||
Reference in New Issue
Block a user