mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
LaTeX writer: Test for protecting images in header.
This commit is contained in:
@@ -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" =:
|
||||
|
||||
Reference in New Issue
Block a user