@@ -632,15 +632,18 @@ markdown api = unlines $
632632 rqbodyStr types s =
633633 ["#### Request:", ""]
634634 <> formatTypes types
635− <> concatMap formatBody s
635+ <> formatBodies s
636636
637637 formatTypes [] = []
638638 formatTypes ts = ["- Supported content types are:", ""]
639639 <> map (\t -> " - `" <> show t <> "`") ts
640640 <> [""]
641641
642+ formatBodies :: [(Text, M.MediaType, ByteString)] -> [String]
643+ formatBodies = concatMap formatBody
644+
642645 formatBody (t, m, b) =
643− "- Example (" <> cs t <> "): `" <> cs (show m) <> "`" :
646+ "- " <> cs t <> " (`" <> cs (show m) <> "`):" :
644647 contentStr m b
645648
646649 markdownForType mime_type =
@@ -676,7 +679,7 @@ markdown api = unlines $
676679 [] -> ["- No response body\n"]
677680 [("", t, r)] -> "- Response body as below." : contentStr t r
678681 xs ->
679− concatMap (\(ctx, t, r) -> ("- " <> T.unpack ctx <> " (`" <> cs (show t) <> "`)") : contentStr t r) xs
682+ formatBodies xs
680683
681684-- * Instances
682685