Syntax: Lines starting with a pipe |
Syntax: Extra pipes separate cells
Syntax: With a trailing pipe, make border
Syntax: Table lines starting with double pipe are heading
Align: Spaces before the leading pipe centralize the table
Align: Spaces inside the cell denote its alignment
| Heading |
Heading |
Heading |
| <- |
-- |
-> |
| -- |
-- |
-- |
| -> |
-- |
<- |
Span: Column span is defined by extra pipes at cell closing
| 1 |
2 |
3+4 |
| 1 |
2 |
3 |
4 |
| 1+2+3 |
4 |
| 1 |
2+3 |
4 |
| 1+2+3+4 |
Test: Empty cells are placed as expected
Test: Lines with different number of cells
| 1 |
| 1 |
2 |
| 1 |
2 |
3 |
| 1 |
2 |
3 |
4 |
| 1 |
2 |
3 |
4 |
5 |
Test: Empty cells + Span + Messy cell number = Fun!
| Jan |
| Fev |
| Mar |
| Apr |
| May |
| 20% |
40% |
60% |
80% |
100% |
|
|
/ |
|
|
|
/ / / / / |
|
| / / / / / / / / / |
|
o |
|
o |
|
|
|
. |
|
|
|
= = = = |
|
| 01 |
02 |
|
|
05 |
|
07 |
|
|
|
11 |
|
13 |
|
|
16 |
| 17 |
|
19 |
20 |
|
|
23 |
|
| 25 |
26 |
|
|
29 |
30 |
|
32 |
|
|
35 |
|
37 |
|
39 |
40 |
Test: Lots of cells at the same line
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
Test: Empty lines
Invalid: There must be at least one space around the pipe
|this|is|not|a|table|
|this| is| not| a| table|
|this |is |not |a |table |
Invalid: You must use spaces, not TABs
| this | is | not | a | table |