@@ -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")
@@ -193,7 +203,10 @@ tests = [
193203 , "forced line breaks" =:
194204 "{{{no break!\\\\here}}} but a break\\\\here!"
195205 =?> para (code "no break!\\\\here" <> " but a break"
196− <> linebreak <> "here!")
206+ <> linebreak <> "here!"),
207+ "quoted block, after trailing white space" =:
208+ "this is a paragraph \n{{{\nfoo bar\n //baz//\n}}}"
209+ =?> para "this is a paragraph" <> codeBlock "foo bar\n //baz//"
197210 ]
198211 , testGroup "Images and Links" [
199212 "image simple" =: