aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-07-02 09:04:07 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-07-02 09:04:07 -0700
commitd39f527b07fa926df4a25d7d3ce2fa10bfeaf66f (patch)
treee1c546afe36d035c4884cf729afdaad943b127a5 /src/Text/Pandoc
parent1f7ce4a2cd0ce62c317267acdfe9c9382ed76e61 (diff)
downloadpandoc-d39f527b07fa926df4a25d7d3ce2fa10bfeaf66f.tar.gz
Fixed bug retrieving default template for markdown variants.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Templates.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Templates.hs b/src/Text/Pandoc/Templates.hs
index e1a127bbd..c95c84ca8 100644
--- a/src/Text/Pandoc/Templates.hs
+++ b/src/Text/Pandoc/Templates.hs
@@ -129,9 +129,11 @@ getDefaultTemplate user writer = do
"json" -> return $ Right ""
"docx" -> return $ Right ""
"odt" -> getDefaultTemplate user "opendocument"
- "markdown_strict" -> getDefaultTemplate user "markdown"
- "multimarkdown" -> getDefaultTemplate user "markdown"
- "markdown_github" -> getDefaultTemplate user "markdown"
+ "markdown_strict" -> getDefaultTemplate user "markdown"
+ "multimarkdown" -> getDefaultTemplate user "markdown"
+ "markdown_github" -> getDefaultTemplate user "markdown"
+ "markdown_mmd" -> getDefaultTemplate user "markdown"
+ "markdown_phpextra" -> getDefaultTemplate user "markdown"
_ -> let fname = "templates" </> "default" <.> format
in E.try $ readDataFileUTF8 user fname