From 64b1394fe2a089828bd58303b23ca461b837cb22 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 3 May 2015 15:06:40 -0700 Subject: Make sure a closing `` doesn't get included in a defn list item. Closes #2127. --- tests/Tests/Readers/Markdown.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index 9904cb9f1..ed79f9e3d 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -279,6 +279,10 @@ tests = [ testGroup "inline code" , "list in definition" =: "foo\n: - bar\n" =?> definitionList [ (text "foo", [bulletList [plain (text "bar")]]) ] + , "in div" =: + "
foo\n: - bar\n
" =?> + divWith nullAttr (definitionList + [ (text "foo", [bulletList [plain (text "bar")]]) ]) ] , testGroup "+compact_definition_lists" [ test markdownCDL "basic compact list" $ -- cgit v1.2.3