diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-08-31 16:04:43 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-08-31 16:05:20 -0400 |
commit | dfc8ab5a6acd6bdd41463937283ac0865f5cf6f5 (patch) | |
tree | 12ef905c4bda90adbef04f0793fae6b758394773 /tests/Tests/Writers | |
parent | d3053807a834db7df115999fbcc4839e94e5f245 (diff) | |
download | pandoc-dfc8ab5a6acd6bdd41463937283ac0865f5cf6f5.tar.gz |
LaTeX writer: Add tests for header-in-item.
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r-- | tests/Tests/Writers/LaTeX.hs | 7 |
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" =: |