3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

Read a GFM pipe table's short rows, rows without a pipe and one column in portableMarkdownToAdf

This commit is contained in:
2026-11-09 11:27:40 +01:00
committed by Lillem4n
parent 429ec8ccb8
commit db2c395d05
27 changed files with 110 additions and 38 deletions
+8 -4
View File
@@ -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
+17
View File
@@ -980,3 +980,20 @@ Read most (opens and searches):
- `ci.sh` 1
=======
>>>>>>> origin/main
## Reading cost, chunk a624aacf239f, finished 2026-11-09T10:24:02Z
167585 new input tokens before the first commit.
Read most (opens and searches):
- `todo.md` 7
- `README.md` 6
- `docs/decisions.md` 6
- `spec/flavour.md` 4
- `docs/kovetskiy-mark.md` 3
- `CHANGELOG.md` 2
- `ci.sh` 2
- `corpus/README.md` 1
- `corpus/round-trip/block-nodes/expand.md` 1
- `corpus/round-trip/block-nodes/panel.md` 1