From 598d3ee23b708634ac8526cdc03291f17803eb2a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 31 Aug 2014 12:55:47 -0700 Subject: Markdown reader: better handling of paragraph in div. Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case:
This is a paragraph. This is another paragraph.
Closes #1591. --- tests/Tests/Readers/Markdown.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Tests') diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index 6e64a6f15..b45d94032 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -266,10 +266,10 @@ tests = [ testGroup "inline code" , testGroup "lists" [ "issue #1154" =: " -
\n first div breaks\n
\n\n \n\n
\n with this div too.\n
\n" - =?> bulletList [divWith nullAttr (plain $ text "first div breaks") <> + =?> bulletList [divWith nullAttr (para $ text "first div breaks") <> rawBlock "html" "" <> - divWith nullAttr (plain $ text "with this div too.")] + divWith nullAttr (para $ text "with this div too.")] ] ] -- cgit v1.2.3