summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-05-01 09:23:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-05-01 09:23:21 -0700
commit007eb96e06bc1fff12119addf2e03552ac992b2e (patch)
treeebcb8f24fa9241d1073bd3206a46400c421f52be /tests
parentb306405caaaee9b43a61533fdce772ccbe934e1f (diff)
Markdown reader: Make one-column pipe tables work.
Closes #1218.
Diffstat (limited to 'tests')
-rw-r--r--tests/pipe-tables.native10
-rw-r--r--tests/pipe-tables.txt10
2 files changed, 19 insertions, 1 deletions
diff --git a/tests/pipe-tables.native b/tests/pipe-tables.native
index 5420a7bd3..eafd21d22 100644
--- a/tests/pipe-tables.native
+++ b/tests/pipe-tables.native
@@ -67,4 +67,12 @@
,[[Plain [Str "orange"]]
,[Plain [Str "17"]]]
,[[Plain [Str "pear"]]
- ,[Plain [Str "302"]]]]]
+ ,[Plain [Str "302"]]]]
+,Para [Str "One-column:"]
+,Table [] [AlignDefault] [0.0]
+ [[Plain [Str "hi"]]]
+ [[[Plain [Str "lo"]]]]
+,Para [Str "Header-less",Space,Str "one-column:"]
+,Table [] [AlignCenter] [0.0]
+ [[]]
+ [[[Plain [Str "hi"]]]]]
diff --git a/tests/pipe-tables.txt b/tests/pipe-tables.txt
index 79d79200f..ee8d54d9f 100644
--- a/tests/pipe-tables.txt
+++ b/tests/pipe-tables.txt
@@ -40,3 +40,13 @@ apple | 5
orange| 17
pear | 302
+One-column:
+
+|hi|
+|--|
+|lo|
+
+Header-less one-column:
+
+|:-:|
+|hi|