Merge branch 'master' of github.com:jgm/pandoc
commit6e96f8b4783d46e2b9e245bf3144f023c5296a38
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateThu 31 Jul 2014, 09:43 (12 years ago)
parentfcafcaa76031f0
src/Text/Pandoc/Shared.hs+8−1
@@ -50,6 +50,7 @@ module Text.Pandoc.Shared (
5050 tabFilter,
5151 -- * Media Handling
5252 MediaBag,
53+ insertMedia,
5354 -- * Date/time
5455 normalizeDate,
5556 -- * Pandoc block and inline list processing
@@ -292,9 +293,15 @@ tabFilter tabStop =
292293---
293294
294295-- | A map of media paths to their binary representations.
295−
296296type MediaBag = M.Map String BL.ByteString
297297
298+-- | Insert a media item into a `MediaBag`
299+insertMedia :: FilePath
300+ -> BL.ByteString
301+ -> MediaBag
302+ -> MediaBag
303+insertMedia = M.insert
304+
298305--
299306-- Date/time
300307--