aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Class.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-07 21:03:18 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-07 21:03:18 +0200
commit6b086acae8f20ad46ca92139e47e516302280e94 (patch)
tree0b873d2625622260bf64c7ce6ba157df594ebb7d /src/Text/Pandoc/Class.hs
parenta902109c6d56f5249a0521c89ab90ca105b7b023 (diff)
downloadpandoc-6b086acae8f20ad46ca92139e47e516302280e94.tar.gz
Rename fillMedia -> fillMediaBag.
Diffstat (limited to 'src/Text/Pandoc/Class.hs')
-rw-r--r--src/Text/Pandoc/Class.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs
index 7407d0799..4ef56ec33 100644
--- a/src/Text/Pandoc/Class.hs
+++ b/src/Text/Pandoc/Class.hs
@@ -61,7 +61,7 @@ module Text.Pandoc.Class ( PandocMonad(..)
, runIOorExplode
, runPure
, withMediaBag
- , fillMedia
+ , fillMediaBag
, extractMedia
) where
@@ -346,8 +346,8 @@ withPaths (p:ps) action fp =
(\_ -> withPaths ps action fp)
-- | Traverse tree, filling media bag.
-fillMedia :: PandocMonad m => Maybe String -> Pandoc -> m Pandoc
-fillMedia sourceURL d = walkM handleImage d
+fillMediaBag :: PandocMonad m => Maybe String -> Pandoc -> m Pandoc
+fillMediaBag sourceURL d = walkM handleImage d
where handleImage :: PandocMonad m => Inline -> m Inline
handleImage (Image attr lab (src, tit)) = catchError
(do (bs, mt) <- fetchItem sourceURL src