Shared: Generalized type of removeFormatting.

This commit is contained in:
John MacFarlane 2014-07-13 14:56:20 -07:00
parent 5df812f7eb
commit 5dba2e2192

View file

@ -495,7 +495,7 @@ normalizeInlines (x : xs) = x : normalizeInlines xs
normalizeInlines [] = []
-- | Remove inline formatting from a list of inlines.
removeFormatting :: [Inline] -> [Inline]
removeFormatting :: Walkable Inline a => a -> [Inline]
removeFormatting = query go . walk deNote
where go :: Inline -> [Inline]
go (Str xs) = [Str xs]