@@ -297,6 +297,7 @@ tests = [ testGroup "block elements"
297 , "escape hash to avoid accidental anchors" =: text "#foo bar"
297 , "escape hash to avoid accidental anchors" =: text "#foo bar"
298 =?> "<verbatim>#foo</verbatim> bar"
298 =?> "<verbatim>#foo</verbatim> bar"
299 , "escape definition list markers" =: str "::" =?> "<verbatim>::</verbatim>"
299 , "escape definition list markers" =: str "::" =?> "<verbatim>::</verbatim>"
300+ , "normalize strings before escaping" =: fromList [Str ":", Str ":"] =?> "<verbatim>::</verbatim>"
300 -- We don't want colons to be escaped if they can't be confused
301 -- We don't want colons to be escaped if they can't be confused
301 -- with definition list item markers.
302 -- with definition list item markers.
302 , "do not escape colon" =: str ":" =?> ":"
303 , "do not escape colon" =: str ":" =?> ":"