mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 17:56:32 +00:00
Added test suites for RST, markdown, and man tables.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@642 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
@@ -0,0 +1,205 @@
|
||||
.PP
|
||||
Simple table with caption:
|
||||
.PP
|
||||
Demonstration of simple table syntax\.
|
||||
.TS
|
||||
tab(@);
|
||||
rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
|
||||
T{
|
||||
Right
|
||||
T}@T{
|
||||
Left
|
||||
T}@T{
|
||||
Center
|
||||
T}@T{
|
||||
Default
|
||||
T}
|
||||
_
|
||||
T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}
|
||||
T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}
|
||||
T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}
|
||||
.TE
|
||||
.PP
|
||||
Simple table without caption:
|
||||
.PP
|
||||
.TS
|
||||
tab(@);
|
||||
rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
|
||||
T{
|
||||
Right
|
||||
T}@T{
|
||||
Left
|
||||
T}@T{
|
||||
Center
|
||||
T}@T{
|
||||
Default
|
||||
T}
|
||||
_
|
||||
T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}
|
||||
T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}
|
||||
T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}
|
||||
.TE
|
||||
.PP
|
||||
Simple table indented two spaces:
|
||||
.PP
|
||||
Demonstration of simple table syntax\.
|
||||
.TS
|
||||
tab(@);
|
||||
rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
|
||||
T{
|
||||
Right
|
||||
T}@T{
|
||||
Left
|
||||
T}@T{
|
||||
Center
|
||||
T}@T{
|
||||
Default
|
||||
T}
|
||||
_
|
||||
T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}@T{
|
||||
12
|
||||
T}
|
||||
T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}@T{
|
||||
123
|
||||
T}
|
||||
T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}@T{
|
||||
1
|
||||
T}
|
||||
.TE
|
||||
.PP
|
||||
Multiline table with caption:
|
||||
.PP
|
||||
Here\[aq]s the caption\. It may span multiple lines\.
|
||||
.TS
|
||||
tab(@);
|
||||
cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
|
||||
T{
|
||||
Centered Header
|
||||
T}@T{
|
||||
Left Aligned
|
||||
T}@T{
|
||||
Right Aligned
|
||||
T}@T{
|
||||
Default aligned
|
||||
T}
|
||||
_
|
||||
T{
|
||||
First
|
||||
T}@T{
|
||||
row
|
||||
T}@T{
|
||||
12\.0
|
||||
T}@T{
|
||||
Example of a row that spans multiple lines\.
|
||||
T}
|
||||
T{
|
||||
Second
|
||||
T}@T{
|
||||
row
|
||||
T}@T{
|
||||
5\.0
|
||||
T}@T{
|
||||
Here\[aq]s another one\. Note the blank line between rows\.
|
||||
T}
|
||||
.TE
|
||||
.PP
|
||||
Multiline table without caption:
|
||||
.PP
|
||||
.TS
|
||||
tab(@);
|
||||
cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
|
||||
T{
|
||||
Centered Header
|
||||
T}@T{
|
||||
Left Aligned
|
||||
T}@T{
|
||||
Right Aligned
|
||||
T}@T{
|
||||
Default aligned
|
||||
T}
|
||||
_
|
||||
T{
|
||||
First
|
||||
T}@T{
|
||||
row
|
||||
T}@T{
|
||||
12\.0
|
||||
T}@T{
|
||||
Example of a row that spans multiple lines\.
|
||||
T}
|
||||
T{
|
||||
Second
|
||||
T}@T{
|
||||
row
|
||||
T}@T{
|
||||
5\.0
|
||||
T}@T{
|
||||
Here\[aq]s another one\. Note the blank line between rows\.
|
||||
T}
|
||||
.TE
|
||||
@@ -0,0 +1,60 @@
|
||||
Simple table with caption:
|
||||
|
||||
Right Left Center Default
|
||||
----------- ------ ------------ ---------
|
||||
12 12 12 12
|
||||
123 123 123 123
|
||||
1 1 1 1
|
||||
|
||||
Table: Demonstration of simple table syntax.
|
||||
|
||||
Simple table without caption:
|
||||
|
||||
Right Left Center Default
|
||||
----------- ------ ------------ ---------
|
||||
12 12 12 12
|
||||
123 123 123 123
|
||||
1 1 1 1
|
||||
|
||||
Simple table indented two spaces:
|
||||
|
||||
Right Left Center Default
|
||||
----------- ------ ------------ ---------
|
||||
12 12 12 12
|
||||
123 123 123 123
|
||||
1 1 1 1
|
||||
|
||||
Table: Demonstration of simple table syntax.
|
||||
|
||||
Multiline table with caption:
|
||||
|
||||
-----------------------------------------------------------
|
||||
Centered Left Right Default aligned
|
||||
Header Aligned Aligned
|
||||
----------- ---------- ------------ --------------------------
|
||||
First row 12.0 Example of a row that
|
||||
spans multiple lines.
|
||||
|
||||
Second row 5.0 Here's another one. Note
|
||||
the blank line between
|
||||
rows.
|
||||
-----------------------------------------------------------
|
||||
|
||||
Table: Here's the caption. It may span multiple lines.
|
||||
|
||||
Multiline table without caption:
|
||||
|
||||
-----------------------------------------------------------
|
||||
Centered Left Right Default aligned
|
||||
Header Aligned Aligned
|
||||
----------- ---------- ------------ --------------------------
|
||||
First row 12.0 Example of a row that
|
||||
spans multiple lines.
|
||||
|
||||
Second row 5.0 Here's another one. Note
|
||||
the blank line between
|
||||
rows.
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
Simple table with caption:
|
||||
|
||||
+-------------+--------+--------------+-----------+
|
||||
| Right | Left | Center | Default |
|
||||
+=============+========+==============+===========+
|
||||
| 12 | 12 | 12 | 12 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 123 | 123 | 123 | 123 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 1 | 1 | 1 | 1 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
|
||||
Table: Demonstration of simple table syntax.
|
||||
|
||||
Simple table without caption:
|
||||
|
||||
+-------------+--------+--------------+-----------+
|
||||
| Right | Left | Center | Default |
|
||||
+=============+========+==============+===========+
|
||||
| 12 | 12 | 12 | 12 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 123 | 123 | 123 | 123 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 1 | 1 | 1 | 1 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
|
||||
Simple table indented two spaces:
|
||||
|
||||
+-------------+--------+--------------+-----------+
|
||||
| Right | Left | Center | Default |
|
||||
+=============+========+==============+===========+
|
||||
| 12 | 12 | 12 | 12 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 123 | 123 | 123 | 123 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
| 1 | 1 | 1 | 1 |
|
||||
+-------------+--------+--------------+-----------+
|
||||
|
||||
Table: Demonstration of simple table syntax.
|
||||
|
||||
Multiline table with caption:
|
||||
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
| Centered | Left | Right | Default aligned |
|
||||
| Header | Aligned | Aligned | |
|
||||
+=============+============+==============+============================+
|
||||
| First | row | 12.0 | Example of a row that |
|
||||
| | | | spans multiple lines. |
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
| Second | row | 5.0 | Here's another one. Note |
|
||||
| | | | the blank line between |
|
||||
| | | | rows. |
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
|
||||
Table: Here's the caption. It may span multiple lines.
|
||||
|
||||
Multiline table without caption:
|
||||
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
| Centered | Left | Right | Default aligned |
|
||||
| Header | Aligned | Aligned | |
|
||||
+=============+============+==============+============================+
|
||||
| First | row | 12.0 | Example of a row that |
|
||||
| | | | spans multiple lines. |
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
| Second | row | 5.0 | Here's another one. Note |
|
||||
| | | | the blank line between |
|
||||
| | | | rows. |
|
||||
+-------------+------------+--------------+----------------------------+
|
||||
|
||||
|
||||
Reference in New Issue
Block a user