@@ -33,7 +33,6 @@ module Text.Pandoc.Shared (
3333 splitByIndices,
3434 substitute,
3535 -- * Text processing
36− gsub,
3736 joinWithSep,
3837 tabsToSpaces,
3938 backslashEscape,
@@ -220,13 +219,6 @@ tabsInLine num tabstop (c:cs) =
220219 else nextnumraw in
221220 replacement ++ (tabsInLine nextnum tabstop cs)
222221
223−-- | Substitute string for every occurrence of regular expression.
224−gsub :: String -- ^ Regular expression (as string) to substitute for
225− -> String -- ^ String to substitute for the regex
226− -> String -- ^ String to be substituted in
227− -> String
228−gsub regex replacement str = subRegex (mkRegex regex) str replacement
229−
230222-- | Escape designated characters with backslash.
231223backslashEscape :: [Char] -- ^ list of special characters to escape
232224 -> String -- ^ string input