From d39f527b07fa926df4a25d7d3ce2fa10bfeaf66f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 2 Jul 2013 09:04:07 -0700 Subject: Fixed bug retrieving default template for markdown variants. --- src/Text/Pandoc/Templates.hs | 8 +++++--- 1 file 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 -- cgit v1.2.3