LaTeX writer: Add tests for header-in-item.
This commit is contained in:
parent
d3053807a8
commit
dfc8ab5a6a
1 changed files with 7 additions and 0 deletions
|
@ -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" =:
|
||||
|
|
Loading…
Add table
Reference in a new issue