From 3b667c54eaa76669357b76db0641851002c58b01 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 5 Feb 2018 00:25:31 +0300 Subject: Muse reader: test that lists can be separated with two blanklines after blockquote Existing tests only checked this for paragraphs. --- test/Tests/Readers/Muse.hs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'test/Tests/Readers/Muse.hs') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index d93704e08..5cdc2c302 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -902,6 +902,33 @@ tests = , " - Baz" ] =?> bulletList [ para "Foo" <> para "bar" ] <> bulletList [ para "Baz" ] + , "No blank line after blockquote" =: + T.unlines + [ " - " + , " foo" + , " " + , " - bar" + ] =?> + bulletList [ blockQuote $ para "foo", para "bar" ] + , "One blank line after blockquote" =: + T.unlines + [ " - " + , " foo" + , " " + , "" + , " - bar" + ] =?> + bulletList [ blockQuote $ para "foo", para "bar" ] + , "Two blank lines after blockquote" =: + T.unlines + [ " - " + , " foo" + , " " + , "" + , "" + , " - bar" + ] =?> + bulletList [ blockQuote $ para "foo" ] <> bulletList [ para "bar" ] ] -- Test that definition list requires a leading space. -- Emacs Muse does not require a space, we follow Amusewiki here. -- cgit v1.2.3