diff options
author | Jörn Krenzer <joern.krenzer@gmx.de> | 2021-11-22 17:42:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 08:42:09 -0800 |
commit | 17495bf8eb5f5483d01ebe6a61e1c24eb1f00924 (patch) | |
tree | 748db22bd62e74147b4bf25f6f56fcefd52e1fd3 /src/Text/Pandoc | |
parent | a19134f74d41e67371fbbcfac8afc99e1f4d9378 (diff) | |
download | pandoc-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/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Citeproc.hs | 1 |
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 |