aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörn Krenzer <joern.krenzer@gmx.de>2021-11-22 17:42:09 +0100
committerGitHub <noreply@github.com>2021-11-22 08:42:09 -0800
commit17495bf8eb5f5483d01ebe6a61e1c24eb1f00924 (patch)
tree748db22bd62e74147b4bf25f6f56fcefd52e1fd3 /src
parenta19134f74d41e67371fbbcfac8afc99e1f4d9378 (diff)
downloadpandoc-17495bf8eb5f5483d01ebe6a61e1c24eb1f00924.tar.gz
Add .yml to Citeproc formatFromExtension (#7706)
Make Citeproc recognize files with .yml extension (in addition to .yaml) as YAML bibliographies. Closes #7707.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Citeproc.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs
index 9f110330e..223925522 100644
--- a/src/Text/Pandoc/Citeproc.hs
+++ b/src/Text/Pandoc/Citeproc.hs
@@ -357,6 +357,7 @@ formatFromExtension fp = case dropWhile (== '.') $ takeExtension fp of
"bib" -> Just Format_biblatex
"json" -> Just Format_json
"yaml" -> Just Format_yaml
+ "yml" -> Just Format_yaml
_ -> Nothing