Merge pull request #1472 from mpickering/master

Shared: Added function insertMedia which is an alias for M.insert
This commit is contained in:
John MacFarlane 2014-07-31 09:42:53 -07:00
commit 76031f01c1

View file

@ -50,6 +50,7 @@ module Text.Pandoc.Shared (
tabFilter, tabFilter,
-- * Media Handling -- * Media Handling
MediaBag, MediaBag,
insertMedia,
-- * Date/time -- * Date/time
normalizeDate, normalizeDate,
-- * Pandoc block and inline list processing -- * Pandoc block and inline list processing
@ -292,9 +293,15 @@ tabFilter tabStop =
--- ---
-- | A map of media paths to their binary representations. -- | A map of media paths to their binary representations.
type MediaBag = M.Map String BL.ByteString type MediaBag = M.Map String BL.ByteString
-- | Insert a media item into a `MediaBag`
insertMedia :: FilePath
-> BL.ByteString
-> MediaBag
-> MediaBag
insertMedia = M.insert
-- --
-- Date/time -- Date/time
-- --