From 17495bf8eb5f5483d01ebe6a61e1c24eb1f00924 Mon Sep 17 00:00:00 2001 From: Jörn Krenzer Date: Mon, 22 Nov 2021 17:42:09 +0100 Subject: Add .yml to Citeproc formatFromExtension (#7706) Make Citeproc recognize files with .yml extension (in addition to .yaml) as YAML bibliographies. Closes #7707. --- src/Text/Pandoc/Citeproc.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3