aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-10-30 17:24:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-10-30 17:25:15 -0700
commit599d4aa03239f6094ee56fedd2a466983c68f434 (patch)
treee7e9353d1c9788733666c3951cca7ee2b3878dc4 /src/Text/Pandoc/App.hs
parentbcf982c083fc32dfda0cf24ca965b71232d22f0c (diff)
downloadpandoc-599d4aa03239f6094ee56fedd2a466983c68f434.tar.gz
EPUB writer fixes:
- Ensure that epub2 is recognized as a non-text format, so that a template is used. - Don't include "prefix" attribute for ibooks for epub2. It doesn't validate. - Fix stylesheet paths; previously we had an incorrect stylesheet path for the cover page and nav page.
Diffstat (limited to 'src/Text/Pandoc/App.hs')
-rw-r--r--src/Text/Pandoc/App.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index 3cf6f0788..e82ccf3f0 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -535,7 +535,7 @@ convertWithOpts opts = do
type Transform = Pandoc -> Pandoc
isTextFormat :: String -> Bool
-isTextFormat s = s `notElem` ["odt","docx","epub","epub3"]
+isTextFormat s = s `notElem` ["odt","docx","epub2","epub3","epub"]
externalFilter :: MonadIO m
=> ReaderOptions -> FilePath -> [String] -> Pandoc -> m Pandoc