aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-10-24 19:31:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-10-24 19:38:16 -0700
commit7e9e959548e665773f7eed388c79ff89d2469d24 (patch)
tree216a685f4ef83793818a49330b7c5d3e35edce3a /tests/writer.latex
parent220a20bf9288bd44642038e5737c933d2b281306 (diff)
downloadpandoc-7e9e959548e665773f7eed388c79ff89d2469d24.tar.gz
LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.
This avoids unwanted interpretation as optional arguments in some contexts, which caused the brackets to silently disappear!
Diffstat (limited to 'tests/writer.latex')
-rw-r--r--tests/writer.latex12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/writer.latex b/tests/writer.latex
index 1621a4844..0d64e544f 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -704,9 +704,9 @@ Left brace: \{
Right brace: \}
-Left bracket: [
+Left bracket: {[}
-Right bracket: ]
+Right bracket: {]}
Left paren: (
@@ -756,7 +756,7 @@ Foo \href{/url/}{bar}.
Foo \href{/url/}{bar}.
-With \href{/url/}{embedded [brackets]}.
+With \href{/url/}{embedded {[}brackets{]}}.
\href{/url/}{b} by itself should be a link.
@@ -766,7 +766,7 @@ Indented \href{/url}{twice}.
Indented \href{/url}{thrice}.
-This should [not][] be a link.
+This should {[}not{]}{[}{]} be a link.
\begin{verbatim}
[not]: /url
@@ -845,10 +845,10 @@ footnote (as with list items).
If you want, you can indent every line, but you can also be lazy
and just indent the first line of each block.}
This should \emph{not} be a footnote reference, because it contains
-a space.[\^{}my note] Here is an inline note.%
+a space.{[}\^{}my note{]} Here is an inline note.%
\footnote{This is \emph{easier} to type. Inline notes may contain
\href{http://google.com}{links} and \verb!]! verbatim characters,
-as well as [bracketed text].}
+as well as {[}bracketed text{]}.}
\begin{quote}
Notes can go in quotes.%