summaryrefslogtreecommitdiff
path: root/tests/Tests/Writers
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-09-09 11:05:47 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-09-09 11:05:47 -0400
commit8d22bf26abe37657b65b008286210cfd69957ed9 (patch)
tree3832fd577847d1eef5ae0cef76543e7fffb79a9a /tests/Tests/Writers
parent1326a417808c5696614908a51729b381a69fd111 (diff)
LaTeX writer: Test for protecting images in header.
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r--tests/Tests/Writers/LaTeX.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 78b2495c7..4d2d3fc05 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -60,6 +60,9 @@ tests = [ testGroup "code blocks"
definitionList [(text "foo", [header 2 (text "bar"),
para $ text "baz"])] =?>
"\\begin{description}\n\\item[foo] ~ \n\\subsection{bar}\n\nbaz\n\\end{description}"
+ , "containing image" =:
+ header 1 (image "imgs/foo.jpg" "" (text "Alt text")) =?>
+ "\\section{\\protect\\includegraphics{imgs/foo.jpg}}"
]
, testGroup "inline code"
[ "struck out and highlighted" =: