Added test case for issue #186 (\$ in latex math).
commit03d69daab6e9d0a683bef4376b6eca8e2d0adae6
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 7 Feb 2012, 19:24 (15 years ago)
parent136777e
src/Tests/Readers/LaTeX.hs+5
@@ -41,6 +41,11 @@ tests = [ testGroup "basic"
4141 header 1 ("text" <> space <> link "/url" "" "link")
4242 ]
4343
44+ , testGroup "math"
45+ [ "escaped $" =:
46+ "$x=\\$4" =?> para (math "x=\\$4")
47+ ]
48+
4449 , testGroup "space and comments"
4550 [ "blank lines + space at beginning" =:
4651 "\n \n hi" =?> para "hi"