pandoc/test/command/3516.md
Albert Krewinkel 4b9fb7a128 Combine grid table parsers
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
2017-05-11 00:17:56 +02:00

723 B

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 |
+---+---+
|   |   |
+---+---+