aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-07-13 14:56:20 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-07-13 14:56:20 -0700
commit5dba2e21925fe0ca7c0a252c54d6fe79fa061ff5 (patch)
tree731edbcd12ef1717a0e7ac093855b33433fd62f0 /src/Text/Pandoc/Shared.hs
parent5df812f7eb9e2d26ffc26b5ba0644a8ae3016629 (diff)
downloadpandoc-5dba2e21925fe0ca7c0a252c54d6fe79fa061ff5.tar.gz
Shared: Generalized type of removeFormatting.
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r--src/Text/Pandoc/Shared.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 8504e996c..02391885d 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -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]