git.iko.soy/typeable/pandoc
on master help sign in
Added tests for markdown-extra tables
661c6c1François Gannaz
tests/markdown-tables.nativenew file+60
@@ -0,0 +1,60 @@
1+[Para [Str "Simplest",Space,Str "table",Space,Str "without",Space,Str "caption",Str ":"]
2+,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
3+ [[Plain [Str "Default1"]]
4+ ,[Plain [Str "Default2"]]
5+ ,[Plain [Str "Default3"]]]
6+ [[[Plain [Str "12"]]
7+ ,[Plain [Str "12"]]
8+ ,[Plain [Str "12"]]]
9+ ,[[Plain [Str "123"]]
10+ ,[Plain [Str "123"]]
11+ ,[Plain [Str "123"]]]
12+ ,[[Plain [Str "1"]]
13+ ,[Plain [Str "1"]]
14+ ,[Plain [Str "1"]]]]
15+,Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption",Str ":"]
16+,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax",Str "."] [AlignRight,AlignLeft,AlignDefault,AlignCenter] [0.0,0.0,0.0,0.0]
17+ [[Plain [Str "Right"]]
18+ ,[Plain [Str "Left"]]
19+ ,[Plain [Str "Default"]]
20+ ,[Plain [Str "Center"]]]
21+ [[[Plain [Str "12"]]
22+ ,[Plain [Str "12"]]
23+ ,[Plain [Str "12"]]
24+ ,[Plain [Str "12"]]]
25+ ,[[Plain [Str "123"]]
26+ ,[Plain [Str "123"]]
27+ ,[Plain [Str "123"]]
28+ ,[Plain [Str "123"]]]
29+ ,[[Plain [Str "1"]]
30+ ,[Plain [Str "1"]]
31+ ,[Plain [Str "1"]]
32+ ,[Plain [Str "1"]]]]
33+,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption",Str ":"]
34+,Table [] [AlignRight,AlignLeft,AlignCenter] [0.0,0.0,0.0]
35+ [[Plain [Str "Right"]]
36+ ,[Plain [Str "Left"]]
37+ ,[Plain [Str "Center"]]]
38+ [[[Plain [Str "12"]]
39+ ,[Plain [Str "12"]]
40+ ,[Plain [Str "12"]]]
41+ ,[[Plain [Str "123"]]
42+ ,[Plain [Str "123"]]
43+ ,[Plain [Str "123"]]]
44+ ,[[Plain [Str "1"]]
45+ ,[Plain [Str "1"]]
46+ ,[Plain [Str "1"]]]]
47+,Para [Str "Headerless",Space,Str "table",Space,Str "without",Space,Str "caption",Str ":"]
48+,Table [] [AlignRight,AlignLeft,AlignCenter] [0.0,0.0,0.0]
49+ [[]
50+ ,[]
51+ ,[]]
52+ [[[Plain [Str "12"]]
53+ ,[Plain [Str "12"]]
54+ ,[Plain [Str "12"]]]
55+ ,[[Plain [Str "123"]]
56+ ,[Plain [Str "123"]]
57+ ,[Plain [Str "123"]]]
58+ ,[[Plain [Str "1"]]
59+ ,[Plain [Str "1"]]
60+ ,[Plain [Str "1"]]]]]
tests/markdown-tables.txtnew file+34
@@ -0,0 +1,34 @@
1+Simplest table without caption:
2+
3+| Default1 | Default2 | Default3 |
4+|----------|----------|----------|
5+|12|12|12|
6+|123|123|123|
7+|1|1|1|
8+
9+Simple table with caption:
10+
11+| Right | Left | Default | Center |
12+|------:|:-----|---------|:------:|
13+| 12 | 12 | 12 | 12 |
14+| 123 | 123 | 123 | 123 |
15+| 1 | 1 | 1 | 1 |
16+
17+ : Demonstration of simple table syntax.
18+
19+Simple table without caption:
20+
21+| Right | Left | Center |
22+|------:|:-----|:------:|
23+|12|12|12|
24+|123|123|123|
25+|1|1|1|
26+
27+
28+Headerless table without caption:
29+
30+|------:|:-----|:------:|
31+|12|12|12|
32+|123|123|123|
33+|1|1|1|
34+