4b9fb7a128
The grid table parsers for markdown and rst was combined into one single parser, slightly changing parsing behavior of both parsers: - The markdown parser now compactifies block content cell-wise: pure text blocks in cells are now treated as paragraphs only if the cell contains multiple paragraphs, and as plain blocks otherwise. Before, this was true only for single-column tables. - The rst parser now accepts newlines and multiple blocks in header cells. Closes: #3638
51 lines
723 B
Markdown
51 lines
723 B
Markdown
Correctly handle empty row:
|
|
```
|
|
% pandoc -f markdown -t rst
|
|
+---+---+
|
|
| 1 | 2 |
|
|
+---+---+
|
|
| | |
|
|
+---+---+
|
|
^D
|
|
+---+---+
|
|
| 1 | 2 |
|
|
+---+---+
|
|
| | |
|
|
+---+---+
|
|
```
|
|
|
|
Temporarily added these to figure out what is happening
|
|
on Windows builds.
|
|
```
|
|
% pandoc -f markdown -t native
|
|
+---+---+
|
|
| 1 | 2 |
|
|
+---+---+
|
|
| | |
|
|
+---+---+
|
|
^D
|
|
[Table [] [AlignDefault,AlignDefault] [5.555555555555555e-2,5.555555555555555e-2]
|
|
[[]
|
|
,[]]
|
|
[[[Plain [Str "1"]]
|
|
,[Plain [Str "2"]]]
|
|
,[[]
|
|
,[]]]]
|
|
```
|
|
|
|
```
|
|
% pandoc -f native -t rst
|
|
[Table [] [AlignDefault,AlignDefault] [5.555555555555555e-2,5.555555555555555e-2]
|
|
[[]
|
|
,[]]
|
|
[[[Para [Str "1"]]
|
|
,[Para [Str "2"]]]
|
|
,[[]
|
|
,[]]]]
|
|
^D
|
|
+---+---+
|
|
| 1 | 2 |
|
|
+---+---+
|
|
| | |
|
|
+---+---+
|
|
```
|