diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-15 10:03:19 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-15 10:06:03 -0800 |
commit | 47c360e0795a5f27e4906ea22fff388b779f270a (patch) | |
tree | 18808b42697ea719cbc511c76dcca04bca7d5aff /tests/Tests | |
parent | 544f3e5b45c7452c7bb90a630ec0904c4808113e (diff) | |
download | pandoc-47c360e0795a5f27e4906ea22fff388b779f270a.tar.gz |
Improved texorpdfstring patch #1148.
* Make LaTeX reader recognize texorpdfstring.
* Don't use texorpdfstring unless it's actually needed.
* Fix tests.
Diffstat (limited to 'tests/Tests')
-rw-r--r-- | tests/Tests/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs index 6d46a15d2..f083176d0 100644 --- a/tests/Tests/Writers/LaTeX.hs +++ b/tests/Tests/Writers/LaTeX.hs @@ -62,7 +62,7 @@ tests = [ testGroup "code blocks" "\\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}}" + "\\section{\\texorpdfstring{\\protect\\includegraphics{imgs/foo.jpg}}{Alt text}}" ] , testGroup "inline code" [ "struck out and highlighted" =: |