@@ -36,6 +36,7 @@ module Text.Pandoc.Options ( Extension(..)
36 , CiteMethod (..)
36 , CiteMethod (..)
37 , ObfuscationMethod (..)
37 , ObfuscationMethod (..)
38 , HTMLSlideVariant (..)
38 , HTMLSlideVariant (..)
39 , WriterOptions (..)
40 , WriterOptions (..)
41 , isEnabled
42 , isEnabled
@@ -173,6 +174,8 @@ instance Default ReaderOptions
173-- Writer options
174-- Writer options
177+data EPUBVersion = EPUB2 | EPUB3 deriving (Eq, Show, Read)
176data HTMLMathMethod = PlainMath
179data HTMLMathMethod = PlainMath
177 | LaTeXMathML (Maybe String) -- url of LaTeXMathML.js
180 | LaTeXMathML (Maybe String) -- url of LaTeXMathML.js
178 | JsMath (Maybe String) -- url of jsMath load script
181 | JsMath (Maybe String) -- url of jsMath load script
@@ -234,6 +237,7 @@ data WriterOptions = WriterOptions
234 , writerHighlightStyle :: Style -- ^ Style to use for highlighting
237 , writerHighlightStyle :: Style -- ^ Style to use for highlighting
235 , writerSetextHeaders :: Bool -- ^ Use setext headers for levels 1-2 in markdown
238 , writerSetextHeaders :: Bool -- ^ Use setext headers for levels 1-2 in markdown
236 , writerTeXLigatures :: Bool -- ^ Use tex ligatures quotes, dashes in latex
239 , writerTeXLigatures :: Bool -- ^ Use tex ligatures quotes, dashes in latex
240+ , writerEpubVersion :: Maybe EPUBVersion -- ^ Nothing or EPUB version
237 , writerEpubMetadata :: String -- ^ Metadata to include in EPUB
241 , writerEpubMetadata :: String -- ^ Metadata to include in EPUB
238 , writerEpubStylesheet :: Maybe String -- ^ EPUB stylesheet specified at command line
242 , writerEpubStylesheet :: Maybe String -- ^ EPUB stylesheet specified at command line
239 , writerEpubFonts :: [FilePath] -- ^ Paths to fonts to embed
243 , writerEpubFonts :: [FilePath] -- ^ Paths to fonts to embed
@@ -274,6 +278,7 @@ instance Default WriterOptions where
274 , writerHighlightStyle = pygments
278 , writerHighlightStyle = pygments
275 , writerSetextHeaders = True
279 , writerSetextHeaders = True
276 , writerTeXLigatures = True
280 , writerTeXLigatures = True
281+ , writerEpubVersion = Nothing
277 , writerEpubMetadata = ""
282 , writerEpubMetadata = ""
278 , writerEpubStylesheet = Nothing
283 , writerEpubStylesheet = Nothing
279 , writerEpubFonts = []
284 , writerEpubFonts = []