mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
78efe58641
Fix headings with colspans. If the heading contains a colspan, we still need to include information in the header line about the colspecs. Fix headerless tables. The top line should encode colspan information. Closes #10855.
1.2 KiB
1.2 KiB
% pandoc -t markdown
+----------+----+
| h1 | h2 |
+:===:+===:+:===+
| A | B |
+-----+----+----+
| C | D | E |
+-----+----+----+
^D
+-------------+----+
| h1 | h2 |
+:====:+=====:+:===+
| A | B |
+------+------+----+
| C | D | E |
+------+------+----+
% pandoc -t markdown
+-----+----+----+
| h1 | h2 | h3 |
+:===:+===:+:===+
| A | B |
+-----+----+----+
| C | D | E |
+-----+----+----+
^D
+------+------+----+
| h1 | h2 | h3 |
+:====:+=====:+:===+
| A | B |
+------+------+----+
| C | D | E |
+------+------+----+
% pandoc -t markdown
+:------:+:-----------:+
| hello |  |
+--------+-------------+
| hello |  |
+--------+-------------+
^D
+:------:+:-----------:+
| hello |  |
+--------+-------------+
| hello |  |
+--------+-------------+
% pandoc -t markdown
+:------:+:-----------:+
| hello |  |
+--------+-------------+
| hello |  |
+--------+-------------+
^D
+:------:+:-----------:+
| hello |  |
+--------+-------------+
| hello |  |
+--------+-------------+