pandoc/test/command/5708.md
John MacFarlane c0d8b186d1 T.P.Parsing: modify gridTableWith' for headerless tables.
If the table lacks a header, the header row should be an empty
list. Previously we got a list of empty cells, which caused
an empty header to be emitted instead of no header.  In LaTeX/PDF
output that meant we got a double top line with space between.

@tarleb @despres - please let me know if this is problematic
for some reason I'm not grasping.
2021-01-07 11:07:03 -08:00

545 B

% pandoc -f rst -t native
+--------+----------------+
| 123456 | :math:`a + b`  |
+--------+----------------+
^D
[Table ("",[],[]) (Caption Nothing
 [])
 [(AlignDefault,ColWidth 0.125)
 ,(AlignDefault,ColWidth 0.2361111111111111)]
 (TableHead ("",[],[])
 [])
 [(TableBody ("",[],[]) (RowHeadColumns 0)
  []
  [Row ("",[],[])
   [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
    [Plain [Str "123456"]]
   ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
    [Plain [Math InlineMath "a + b"]]]])]
 (TableFoot ("",[],[])
 [])]