diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-12-25 11:03:11 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-25 11:03:11 +0100 |
commit | 0104ef892820383845b3dce44c46899fec2f04f0 (patch) | |
tree | 81eba131303296aeb5ef5c880504cab0932dcab2 /haddock-library/test/Documentation/Haddock/ParserSpec.hs | |
parent | 2d4680f12f8c9cd647049eb1e3e56531bd44e880 (diff) | |
parent | 3f50b955324bd4b42f88a421f0203bc46a3ccf64 (diff) |
Merge remote-tracking branch 'idontgetoutmuch/ghc-head' into ghc-head
Diffstat (limited to 'haddock-library/test/Documentation/Haddock/ParserSpec.hs')
-rw-r--r-- | haddock-library/test/Documentation/Haddock/ParserSpec.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/haddock-library/test/Documentation/Haddock/ParserSpec.hs b/haddock-library/test/Documentation/Haddock/ParserSpec.hs index 2ef414fb..1169eb49 100644 --- a/haddock-library/test/Documentation/Haddock/ParserSpec.hs +++ b/haddock-library/test/Documentation/Haddock/ParserSpec.hs @@ -208,6 +208,10 @@ spec = do it "supports title for deprecated picture syntax" $ do "<<b a z>>" `shouldParseTo` image "b" "a z" + context "when parsing display math" $ do + + it "accepts markdown syntax for display math containing newlines" $ do + "\\[\\pi\n\\pi\\]" `shouldParseTo` DocMathDisplay "\\pi\n\\pi" context "when parsing anchors" $ do it "parses a single word anchor" $ do |