git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Test for protecting images in header.
commit8d22bf26abe37657b65b008286210cfd69957ed9 authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 9 Sep 2014, 11:05 (12 years ago) parent1326a41
1 file changed+3
tests/Tests/Writers/LaTeX.hs+3
tests/Tests/Writers/LaTeX.hs+3
@@ -60,6 +60,9 @@ tests = [ testGroup "code blocks"
6060 definitionList [(text "foo", [header 2 (text "bar"),
6161 para $ text "baz"])] =?>
6262 "\\begin{description}\n\\item[foo] ~ \n\\subsection{bar}\n\nbaz\n\\end{description}"
63+ , "containing image" =:
64+ header 1 (image "imgs/foo.jpg" "" (text "Alt text")) =?>
65+ "\\section{\\protect\\includegraphics{imgs/foo.jpg}}"
6366 ]
6467 , testGroup "inline code"
6568 [ "struck out and highlighted" =: