Fixed bug retrieving default template for markdown variants.
This commit is contained in:
parent
1f7ce4a2cd
commit
d39f527b07
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue