@@ -93,6 +93,79 @@ tests = [ testGroup "block elements"
93 , " third definition :: third description"
93 , " third definition :: third description"
96+ -- Test that lists of the same type and style are separated with two blanklines
97+ , testGroup "sequential lists"
99+ bulletList [ para $ text "First"
100+ , para $ text "Second"
101+ , para $ text "Third"
103+ bulletList [ para $ text "Fourth"
104+ , para $ text "Fifth"
106+ unlines [ " - First"
114+ , "ordered lists of the same style" =:
115+ orderedListWith (1, UpperRoman, DefaultDelim) [ para $ text "First"
116+ , para $ text "Second"
118+ orderedListWith (1, UpperRoman, DefaultDelim) [ para $ text "Third"
119+ , para $ text "Fourth"
121+ unlines [ " I. First"
128+ , "ordered lists with equal styles" =:
129+ orderedList [ para $ text "First"
130+ , para $ text "Second"
132+ orderedListWith (1, Decimal, DefaultDelim) [ para $ text "Third"
133+ , para $ text "Fourth"
135+ unlines [ " 1. First"
142+ , "bullet and ordered lists" =:
143+ bulletList [ para $ text "First"
144+ , para $ text "Second"
146+ orderedListWith (1, UpperRoman, DefaultDelim) [ para $ text "Third"
147+ , para $ text "Fourth"
149+ unlines [ " - First"
155+ , "different style ordered lists" =:
156+ orderedListWith (1, UpperRoman, DefaultDelim) [ para $ text "First"
157+ , para $ text "Second"
159+ orderedListWith (1, Decimal, DefaultDelim) [ para $ text "Third"
160+ , para $ text "Fourth"
162+ unlines [ " I. First"
96 , testGroup "nested lists"
169 , testGroup "nested lists"
97 [ "nested ordered list" =: orderedList [ plain $ text "First outer"
170 [ "nested ordered list" =: orderedList [ plain $ text "First outer"
98 , plain (text "Second outer:") <>
171 , plain (text "Second outer:") <>