mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 05:35:38 +00:00
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.
72 lines
1.2 KiB
Markdown
72 lines
1.2 KiB
Markdown
```
|
|
% 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 |  |
|
|
+--------+-------------+
|
|
|
|
```
|