@@ -50,6 +50,15 @@ tests = [ testGroup "rubrics"
5050 , ""
5151 , " quoted"]
5252 ]
53+ , testGroup "spaces are stripped within inlines"
54+ -- pandoc issue 4327 "The text within inline markup may not
55+ -- begin or end with whitespace"
56+ -- http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup
57+ [ "multiple" =:
58+ strong (space <> str "text" <> space <> space) =?> "**text**"
59+ , "single" =:
60+ strong (space) =?> "****"
61+ ]
5362 , testGroup "headings"
5463 [ "normal heading" =:
5564 header 1 (text "foo") =?>