aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-11-30 15:36:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-11-30 15:36:18 -0800
commitbc6bb3be5c430b1357e58144e64daa561770fe44 (patch)
treef97c7c48f16dced62831d8cb939acdfe419d0efe
parent17ef39d1577a7c844f8747294f0e7a0486c1edaa (diff)
downloadpandoc-bc6bb3be5c430b1357e58144e64daa561770fe44.tar.gz
Allow "epub2" as synonym for "epub", "html4" for "html".
-rw-r--r--pandoc.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 21773ed80..8c196c01d 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -982,7 +982,10 @@ main = do
let writerName' = if null writerName
then defaultWriterName outputFile
- else writerName
+ else case writerName of
+ "epub2" -> "epub"
+ "html4" -> "html"
+ x -> x
let pdfOutput = map toLower (takeExtension outputFile) == ".pdf"