aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-06-26 20:54:31 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-06-26 20:54:31 -0700
commit79a4ea03e2d0a252fd24af3444cf5b64ee724100 (patch)
tree411653ba962b8fb20aafda2d34791692d286436b /tests
parentf939dbdcc5648e9beb24fa1ebf55fcefb6bfc272 (diff)
downloadpandoc-79a4ea03e2d0a252fd24af3444cf5b64ee724100.tar.gz
Stop escaping `|` in LaTeX math.
This caused problems with array environments. Closes #891.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Writers/LaTeX.hs2
-rw-r--r--tests/lhs-test.latex2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 944d6c138..b1427d91f 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -34,6 +34,6 @@ tests = [ testGroup "code blocks"
]
, testGroup "math"
[ "escape |" =: para (math "\\sigma|_{\\{x\\}}") =?>
- "$\\sigma\\vert _{\\{x\\}}$"
+ "$\\sigma|_{\\{x\\}}$"
]
]
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index 038e0b29b..3028063fe 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -23,7 +23,7 @@
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
-\DefineShortVerb[commandchars=\\\{\}]{\|}
+\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\newenvironment{Shaded}{}{}