Added test for #1154.

This commit is contained in:
John MacFarlane
2014-05-04 08:19:48 -07:00
parent 3e42f08e87
commit 1e50424892
+9
View File
@@ -216,4 +216,13 @@ tests = [ testGroup "inline code"
-- , testGroup "round trip"
-- [ property "p_markdown_round_trip" p_markdown_round_trip
-- ]
, testGroup "lists"
[ "issue #1154" =:
" - <div>\n first div breaks\n </div>\n\n <button>if this button exists</button>\n\n <div>\n with this div too.\n </div>\n"
=?> bulletList [divWith nullAttr (plain $ text "first div breaks") <>
rawBlock "html" "<button>" <>
plain (text "if this button exists") <>
rawBlock "html" "</button>\n" <>
divWith nullAttr (plain $ text "with this div too.")]
]
]