aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App/FormatHeuristics.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-01-16 11:15:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-01-16 11:15:35 -0800
commit83336a45a78b288dcc0104d2432135bdb3f5e8f1 (patch)
tree2cee47196d6ce520cb0899bd8283c4a18f918369 /src/Text/Pandoc/App/FormatHeuristics.hs
parente7ea89928fb11ca882fcb2f3b805eed3ea04147e (diff)
downloadpandoc-83336a45a78b288dcc0104d2432135bdb3f5e8f1.tar.gz
Recognize more extensions as markdown by default.
`mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`. Closes #7034.
Diffstat (limited to 'src/Text/Pandoc/App/FormatHeuristics.hs')
-rw-r--r--src/Text/Pandoc/App/FormatHeuristics.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App/FormatHeuristics.hs b/src/Text/Pandoc/App/FormatHeuristics.hs
index 17ed30fe9..65a1a7b82 100644
--- a/src/Text/Pandoc/App/FormatHeuristics.hs
+++ b/src/Text/Pandoc/App/FormatHeuristics.hs
@@ -48,6 +48,11 @@ formatFromFilePath x =
".lhs" -> Just "markdown+lhs"
".ltx" -> Just "latex"
".markdown" -> Just "markdown"
+ ".mkdn" -> Just "markdown"
+ ".mkd" -> Just "markdown"
+ ".mdwn" -> Just "markdown"
+ ".mdown" -> Just "markdown"
+ ".Rmd" -> Just "markdown"
".md" -> Just "markdown"
".ms" -> Just "ms"
".muse" -> Just "muse"