aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-31 19:31:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-31 19:31:38 -0700
commit3533218d6d7e15384262bf478d5ebf5e191f96ff (patch)
tree28a7411c62302e836b0d0ceb517c0fa2e5e5da04 /tests/Tests/Writers
parent01b795781280018323e176b9540de7bf3599f9ac (diff)
parentdfc8ab5a6acd6bdd41463937283ac0865f5cf6f5 (diff)
downloadpandoc-3533218d6d7e15384262bf478d5ebf5e191f96ff.tar.gz
Merge pull request #1594 from jkr/itemFix
Item fix
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r--tests/Tests/Writers/LaTeX.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 8ce73c099..78b2495c7 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -53,6 +53,13 @@ tests = [ testGroup "code blocks"
headerWith ("foo",["unnumbered"],[]) 1
(text "Header 1" <> note (plain $ text "note")) =?>
"\\section*{Header 1\\footnote{note}}\\label{foo}\n\\addcontentsline{toc}{section}{Header 1}\n"
+ , "in list item" =:
+ bulletList [header 2 (text "foo")] =?>
+ "\\begin{itemize}\n\\item ~\n \\subsection{foo}\n\\end{itemize}"
+ , "in definition list item" =:
+ definitionList [(text "foo", [header 2 (text "bar"),
+ para $ text "baz"])] =?>
+ "\\begin{description}\n\\item[foo] ~ \n\\subsection{bar}\n\nbaz\n\\end{description}"
]
, testGroup "inline code"
[ "struck out and highlighted" =: