@@ -12,7 +12,8 @@ import Test.Tasty.QuickCheck (QuickCheckTests (..), ioProperty, testProperty)
1212import Text.Pandoc.Arbitrary ()
1313import Text.Pandoc.Builder (bulletList , divWith , doc , doubleQuoted , emph ,
1414 header , linebreak , para , plain , rawBlock ,
15- singleQuoted , space , str , strong )
15+ singleQuoted , space , str , strong ,
16+ math , displayMath )
1617import Text.Pandoc.Class (runIOorExplode , setUserDataDir )
1718import Text.Pandoc.Definition (Block (BlockQuote , Div , Para ), Inline (Emph , Str ),
1819 Attr , Meta , Pandoc , pandocTypesVersion )
@@ -48,6 +49,12 @@ tests = map (localOption (QuickCheckTests 20))
4849 (doc $ bulletList [plain (str " alfa" ), plain (str " bravo" )])
4950 (doc $ bulletList [para (str " alfa" ), para (str " bravo" )])
5051
52+ , testCase " convert display math to inline math" $
53+ assertFilterConversion " display math becomes inline math"
54+ " math.lua"
55+ (doc $ para (displayMath " 5+5" ))
56+ (doc $ para (math " 5+5" ))
57+
5158 , testCase " make hello world document" $
5259 assertFilterConversion " Document contains 'Hello, World!'"
5360 " hello-world-doc.lua"
0 commit comments