aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-07-30 13:09:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-07-30 13:09:55 -0700
commit08e2498e7395621476145ecc262654450c935537 (patch)
tree44ca7f34747cca4907b043d96535f650085c5cfb /src/Text
parent555f9b746d19e24d962b9ae6ccb940810fdb2a08 (diff)
downloadpandoc-08e2498e7395621476145ecc262654450c935537.tar.gz
Added writerMediaBag to WriterOptions.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Options.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs
index a19f4b087..0c21afcc7 100644
--- a/src/Text/Pandoc/Options.hs
+++ b/src/Text/Pandoc/Options.hs
@@ -321,7 +321,8 @@ data WriterOptions = WriterOptions
, writerEpubChapterLevel :: Int -- ^ Header level for chapters (separate files)
, writerTOCDepth :: Int -- ^ Number of levels to include in TOC
, writerReferenceODT :: Maybe FilePath -- ^ Path to reference ODT if specified
- , writerReferenceDocx :: Maybe FilePath -- ^ Ptah to reference DOCX if specified
+ , writerReferenceDocx :: Maybe FilePath -- ^ Path to reference DOCX if specified
+ , writerMediaBag :: MediaBag -- ^ Media collected by docx or epub reader
} deriving Show
instance Default WriterOptions where
@@ -364,6 +365,7 @@ instance Default WriterOptions where
, writerTOCDepth = 3
, writerReferenceODT = Nothing
, writerReferenceDocx = Nothing
+ , writerMediaBag = M.empty
}
-- | Returns True if the given extension is enabled.