git.iko.soy/typeable/pandoc
on master help sign in
Added test case for issue #186 (\$ in latex math).
03d69daJohn MacFarlane
src/Tests/Readers/LaTeX.hs+5
@@ -41,6 +41,11 @@ tests = [ testGroup "basic"
41 header 1 ("text" <> space <> link "/url" "" "link")
41 header 1 ("text" <> space <> link "/url" "" "link")
42 ]
42 ]
43
43
44+ , testGroup "math"
45+ [ "escaped $" =:
46+ "$x=\\$4" =?> para (math "x=\\$4")
47+ ]
48+
44 , testGroup "space and comments"
49 , testGroup "space and comments"
45 [ "blank lines + space at beginning" =:
50 [ "blank lines + space at beginning" =:
46 "\n \n hi" =?> para "hi"
51 "\n \n hi" =?> para "hi"