pandoc/tests/pipe-tables.txt
John MacFarlane eb8aee477d Pipe tables with long lines now get relative cell widths.
If a pipe table contains a line longer than the column
width (as set by `--columns` or 80 by default), relative
widths are computed based on the widths of the separator lines
relative to the column width.

This should solve persistent problems with long pipe tables in
LaTeX/PDF output, and give more flexibility for determining
relative column widths in other formats, too.

For narrower pipe tables, column widths of 0 are used,
telling pandoc not to specify widths explicitly in output
formats that permit this.

Closes #2471.
2015-10-30 12:37:08 -07:00

68 lines
1.1 KiB
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|
Indented left column:
Number of siblings | Salary
------------------:|:------
3 | 33
4 | 44
Long pipe table with relative widths:
| Default1 | Default2 | Default3 |
|---------|----------|---------------------------------------|
|123|this is a table cell|and this is a really long table cell that will probably need wrapping|
|123|123|123|