From 3190ce95c2175936ffded9ecf356d9ac1cc15d8a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 27 Oct 2020 21:04:24 -0700 Subject: Citeproc: properly handle `csl` field with `data:` URI. This is used with the JATS writer, so this fixes a regression in pandoc 2.11 with JATS output and citeproc. Closes #6783. --- src/Text/Pandoc/Citeproc.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs index 175fbadb2..29964ef8c 100644 --- a/src/Text/Pandoc/Citeproc.hs +++ b/src/Text/Pandoc/Citeproc.hs @@ -60,7 +60,7 @@ processCitations (Pandoc meta bs) = do setResourcePath $ oldRp ++ maybe [] (\u -> [u <> "/csl", u <> "/csl/dependent"]) mbUdd - let fp' = if T.any (=='.') fp + let fp' = if T.any (=='.') fp || "data:" `T.isPrefixOf` fp then fp else fp <> defaultExtension (result, _) <- fetchItem fp' -- cgit v1.2.3