git.iko.soy/typeable/pandoc
on master help sign in
Added fields to WriterOptions.

writerEpubStylesheet, writerEpubFonts, writerReferenceODT, writerReferenceDocx. These can now be removed as extra parameters to the writers.

commitcd19d4596bc696670756c8ad6440d3f3b75cb5e8 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 24 Jul 2012, 09:49 (14 years ago) parent6da9d9b
1 file changed+8
src/Text/Pandoc/Shared.hs+8
src/Text/Pandoc/Shared.hs+8
@@ -523,6 +523,10 @@ data WriterOptions = WriterOptions
523523 , writerHighlightStyle :: Style -- ^ Style to use for highlighting
524524 , writerSetextHeaders :: Bool -- ^ Use setext headers for levels 1-2 in markdown
525525 , writerTeXLigatures :: Bool -- ^ Use tex ligatures quotes, dashes in latex
526+ , writerEpubStylesheet :: Maybe String -- ^ EPUB stylesheet specified at command line
527+ , writerEpubFonts :: [FilePath] -- ^ Paths to fonts to embed
528+ , writerReferenceODT :: Maybe FilePath -- ^ Path to reference ODT if specified
529+ , writerReferenceDocx :: Maybe FilePath -- ^ Ptah to reference DOCX if specified
526530 } deriving Show
527531
528532instance Default WriterOptions where
@@ -565,6 +569,10 @@ defaultWriterOptions =
565569 , writerHighlightStyle = pygments
566570 , writerSetextHeaders = True
567571 , writerTeXLigatures = True
572+ , writerEpubStylesheet = Nothing
573+ , writerEpubFonts = []
574+ , writerReferenceODT = Nothing
575+ , writerReferenceDocx = Nothing
568576 }
569577
570578--