pandoc/tests/pipe-tables.txt
John MacFarlane 48eaadc57f Fixed pipe tables -- headerless tables are not allowed.
GFM and PHP Markdown Extra pipe tables require headers.
Previously pandoc allowed pipe tables not to include headers,
and produced headerless pipe tables in Markdown output, but this
was based on a misconception about pipe table syntax. This
commit fixes this.

Note:  If you have been using headerless pipe tables, this may
cause existing tables to break.

Closes #1996.
2015-03-07 10:40:13 -08:00

54 lines
796 B
Text

Simplest table without caption:
| Default1 | Default2 | Default3 |
|----------|----------|----------|
|12|12|12|
|123|123|123|
|1|1|1|
Simple table with caption:
| Right | Left | Default | Center |
| ----: | :--- | ------- | :----: |
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |
: Demonstration of simple table syntax.
Simple table without caption:
| Right | Left | Center |
|------:|:-----|:------:|
|12|12|12|
|123|123|123|
|1|1|1|
Headerless table without caption:
| | | |
|------:|:-----|:------:|
|12|12|12|
|123|123|123|
|1|1|1|
Table without sides:
Fruit |Quantity
------|-------:
apple | 5
orange| 17
pear | 302
One-column:
|hi|
|--|
|lo|
Header-less one-column:
| |
|:-:|
|hi|