aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-02-07 19:24:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2012-02-07 19:24:09 -0800
commit03d69daab6e9d0a683bef4376b6eca8e2d0adae6 (patch)
tree74bc3ad103240d1bd5741db61a91ced3d35c4625 /src
parent136777e13c5b21d3aa5089b55ac6bfc81b1ffd76 (diff)
downloadpandoc-03d69daab6e9d0a683bef4376b6eca8e2d0adae6.tar.gz
Added test case for issue #186 (\$ in latex math).
Diffstat (limited to 'src')
-rw-r--r--src/Tests/Readers/LaTeX.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Tests/Readers/LaTeX.hs b/src/Tests/Readers/LaTeX.hs
index 6401fdba5..cb8ddefa6 100644
--- a/src/Tests/Readers/LaTeX.hs
+++ b/src/Tests/Readers/LaTeX.hs
@@ -41,6 +41,11 @@ tests = [ testGroup "basic"
header 1 ("text" <> space <> link "/url" "" "link")
]
+ , testGroup "math"
+ [ "escaped $" =:
+ "$x=\\$4" =?> para (math "x=\\$4")
+ ]
+
, testGroup "space and comments"
[ "blank lines + space at beginning" =:
"\n \n hi" =?> para "hi"