@@ -94,6 +94,15 @@ tests = [ testGroup "block elements"
9494 , " second definition :: second description"
9595 , " third definition :: third description"
9696 ]
97+ , "definition list with multiple descriptions" =:
98+ definitionList [ (text "first definition", [plain $ text "first description"
99+ ,plain $ text "second description"])
100+ , (text "second definition", [plain $ text "third description"])
101+ ]
102+ =?> unlines [ " first definition :: first description"
103+ , " :: second description"
104+ , " second definition :: third description"
105+ ]
97106 ]
98107 -- Test that lists of the same type and style are separated with two blanklines
99108 , testGroup "sequential lists"
@@ -197,8 +206,8 @@ tests = [ testGroup "block elements"
197206 ]
198207 , "nested definition lists" =: definitionList [ (text "first definition", [plain $ text "first description"])
199208 , (text "second definition",
200− [ plain (text "second description")
201− , definitionList [ ( text "first inner definition"
209+ [ plain (text "second description") <>
210+ definitionList [ ( text "first inner definition"
202211 , [plain $ text "first inner description"])
203212 , ( text "second inner definition"
204213 , [plain $ text "second inner description"])