LaTeX writer: Add tests for header-in-item.

This commit is contained in:
Jesse Rosenthal 2014-08-31 16:04:43 -04:00
parent d3053807a8
commit dfc8ab5a6a

View file

@ -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" =: