summaryrefslogtreecommitdiff
path: root/tests/latex-reader.native
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-07 10:15:48 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-07 10:15:48 -0800
commitd891b2c29d0e010bb35c1c7251293d7315712044 (patch)
treef7fa86b02f396d604d82af2bf12f7a5240dfae37 /tests/latex-reader.native
parent93c3e27731321294a204c465f8b917946db38c85 (diff)
LaTeX reader: Support simple tables.
Diffstat (limited to 'tests/latex-reader.native')
-rw-r--r--tests/latex-reader.native8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/latex-reader.native b/tests/latex-reader.native
index 80cd7f4aa..72211809e 100644
--- a/tests/latex-reader.native
+++ b/tests/latex-reader.native
@@ -287,7 +287,13 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
, [ Para [Str "$",Str "22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$",Str "34,000.",Space,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"] ]
, [ Para [Str "Escaped",Space,Code "$",Str ":",Space,Str "$",Str "73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23",Str "$",Str "."] ] ]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
-, Para [TeX "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"]
+, Table [] [AlignLeft,AlignLeft] [0.0,0.0]
+ [ [ Plain [Str "Animal"] ]
+ , [ Plain [Str "Number"] ] ] [
+ [ [ Plain [Str "Dog"] ]
+ , [ Plain [Str "2"] ] ],
+ [ [ Plain [Str "Cat"] ]
+ , [ Plain [Str "1"] ] ] ]
, HorizontalRule
, Header 1 [Str "Special",Space,Str "Characters"]
, Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]