diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2013-11-30 15:36:18 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2013-11-30 15:36:18 -0800 |
| commit | bc6bb3be5c430b1357e58144e64daa561770fe44 (patch) | |
| tree | f97c7c48f16dced62831d8cb939acdfe419d0efe | |
| parent | 17ef39d1577a7c844f8747294f0e7a0486c1edaa (diff) | |
| download | pandoc-bc6bb3be5c430b1357e58144e64daa561770fe44.tar.gz | |
Allow "epub2" as synonym for "epub", "html4" for "html".
| -rw-r--r-- | pandoc.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |
