aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-28 09:37:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-28 09:37:05 -0700
commit1d53d452c3a2ac81bcf9bd40f31c40a0656706a2 (patch)
tree2b63a715254c3d4d7d7618c9398784e4906e6a01 /tests/Tests/Writers
parent3b4d5d26a5000e7dcaea956923d4f8041c801e9b (diff)
downloadpandoc-1d53d452c3a2ac81bcf9bd40f31c40a0656706a2.tar.gz
LaTeX writer: add `\protect` to `\hyperlink`.
Thanks to Hadrien Mary for the problem and solution. Closes #2490.
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r--tests/Tests/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index f0bd67b75..27931dc28 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -42,7 +42,7 @@ tests = [ testGroup "code blocks"
, testGroup "definition lists"
[ "with internal link" =: definitionList [(link "#go" "" (str "testing"),
[plain (text "hi there")])] =?>
- "\\begin{description}\n\\tightlist\n\\item[\\hyperlink{go}{testing}]\nhi there\n\\end{description}"
+ "\\begin{description}\n\\tightlist\n\\item[\\protect\\hyperlink{go}{testing}]\nhi there\n\\end{description}"
]
, testGroup "math"
[ "escape |" =: para (math "\\sigma|_{\\{x\\}}") =?>