aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-07-24 09:49:57 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-07-24 09:49:57 -0700
commitcd19d4596bc696670756c8ad6440d3f3b75cb5e8 (patch)
tree9fd5a627d59da26c9050e282c87a2f37bab33436 /src/Text/Pandoc/Shared.hs
parent6da9d9bca5111629801b70d4a4c70a1f47d9483b (diff)
downloadpandoc-cd19d4596bc696670756c8ad6440d3f3b75cb5e8.tar.gz
Added fields to WriterOptions.
writerEpubStylesheet, writerEpubFonts, writerReferenceODT, writerReferenceDocx. These can now be removed as extra parameters to the writers.
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r--src/Text/Pandoc/Shared.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 6c8904010..e976b93dc 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -523,6 +523,10 @@ data WriterOptions = WriterOptions
, writerHighlightStyle :: Style -- ^ Style to use for highlighting
, writerSetextHeaders :: Bool -- ^ Use setext headers for levels 1-2 in markdown
, writerTeXLigatures :: Bool -- ^ Use tex ligatures quotes, dashes in latex
+ , writerEpubStylesheet :: Maybe String -- ^ EPUB stylesheet specified at command line
+ , writerEpubFonts :: [FilePath] -- ^ Paths to fonts to embed
+ , writerReferenceODT :: Maybe FilePath -- ^ Path to reference ODT if specified
+ , writerReferenceDocx :: Maybe FilePath -- ^ Ptah to reference DOCX if specified
} deriving Show
instance Default WriterOptions where
@@ -565,6 +569,10 @@ defaultWriterOptions =
, writerHighlightStyle = pygments
, writerSetextHeaders = True
, writerTeXLigatures = True
+ , writerEpubStylesheet = Nothing
+ , writerEpubFonts = []
+ , writerReferenceODT = Nothing
+ , writerReferenceDocx = Nothing
}
--