diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-12 10:21:19 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-12 10:21:19 -0800 |
commit | 70e308f2f9673cdf13bb42be4ad9b68265c02df1 (patch) | |
tree | 8af81ce283121cc98b9aa8dd922d400d394c3091 /tests/Tests | |
parent | f2aa5fd661cc74326ebc40f80c8854564e386b74 (diff) | |
download | pandoc-70e308f2f9673cdf13bb42be4ad9b68265c02df1.tar.gz |
Escape `|` as `\vert` in LaTeX math.
This avoids a clash with highlighting-kate's macros, which
redefine | as a short verbatim delimiter. Thanks to
Björn Peemöller for raising this issue.
Diffstat (limited to 'tests/Tests')
-rw-r--r-- | tests/Tests/Writers/LaTeX.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs index 16e0c3f23..33d6ecc78 100644 --- a/tests/Tests/Writers/LaTeX.hs +++ b/tests/Tests/Writers/LaTeX.hs @@ -32,4 +32,8 @@ tests = [ testGroup "code blocks" [ "in footnotes" =: note (para "hi" <> codeBlock "hi") =?> "\\footnote{hi\n\n\\begin{Verbatim}\nhi\n\\end{Verbatim}\n}" ] + , testGroup "math" + [ "escape |" =: para (math "\\sigma|_{\\{x\\}}") =?> + "$\\sigma\\vert _{\\{x\\}}$" + ] ] |