@@ -127,6 +127,11 @@ tests = [
127127 =?> bulletList [ plain "foo"
128128 <> bulletList [ plain "bar", plain "baz" ]
129129 , plain "blubb" ]
130+ , "nested unordered list, one separating space, trailing space" =:
131+ "* foo \n** bar \n** baz \n* blubb "
132+ =?> bulletList [ plain "foo"
133+ <> bulletList [ plain "bar", plain "baz" ]
134+ , plain "blubb" ]
130135 , "ordered list, two entries, one separating space" =:
131136 "# foo\n# bar"
132137 =?> orderedList [ plain "foo", plain "bar" ]
@@ -141,6 +146,11 @@ tests = [
141146 =?> orderedList [ plain "foo"
142147 <> orderedList [ plain "bar", plain "baz" ]
143148 , plain "blubb" ]
149+ , "nested ordered list, one separating space, trailing space" =:
150+ "# foo \n## bar \n## baz \n# blubb "
151+ =?> orderedList [ plain "foo"
152+ <> orderedList [ plain "bar", plain "baz" ]
153+ , plain "blubb" ]
144154 , "nested many ordered lists, one separating space" =:
145155 ("# foo\n## bar\n### third\n### third two\n## baz\n### third again\n"
146156 <> "#### fourth\n##### fith\n# blubb")