aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-14 18:59:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-14 18:59:50 -0800
commit9305114b9ff5a6b742e9e5949e442c188a2f242a (patch)
treeddfee098ae13c127a20af8902364873074d97dc5 /tests/writer.latex
parent5131589be0de048c9c0b526da715c5430932bf43 (diff)
downloadpandoc-9305114b9ff5a6b742e9e5949e442c188a2f242a.tar.gz
LaTeX writer: Escape strings in \href{..}.
Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
Diffstat (limited to 'tests/writer.latex')
-rw-r--r--tests/writer.latex10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/writer.latex b/tests/writer.latex
index 374815f63..eb4012749 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -581,7 +581,7 @@ spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b c\ensuremath{\sim}d.
`He said, ``I want to go.''\,' Were you alive in the 70's?
Here is some quoted `\verb!code!' and a
-``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
+``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
Some dashes: one---two --- three---four --- five.
@@ -711,7 +711,7 @@ Just a \href{/url/}{URL}.
\href{/url/}{URL and title}
-\href{/url/with_underscore}{with\_underscore}
+\href{/url/with\_underscore}{with\_underscore}
\href{mailto:nobody@nowhere.net}{Email link}
@@ -746,15 +746,15 @@ Foo \href{/url/}{biz}.
\subsection{With ampersands}
-Here's a \href{http://example.com/?foo=1&bar=2}{link with an ampersand in the
+Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
URL}.
Here's a link with an amersand in the link text:
\href{http://att.com/}{AT\&T}.
-Here's an \href{/script?foo=1&bar=2}{inline link}.
+Here's an \href{/script?foo=1\&bar=2}{inline link}.
-Here's an \href{/script?foo=1&bar=2}{inline link in pointy braces}.
+Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
\subsection{Autolinks}