aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Citeproc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-10-27 21:04:24 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-10-27 21:04:24 -0700
commit3190ce95c2175936ffded9ecf356d9ac1cc15d8a (patch)
tree1f6444a3280fe952b670dcdbc1c0d3fe91f627ea /src/Text/Pandoc/Citeproc.hs
parent3d93414e5d433cad21ae2cbf45658d5789571f57 (diff)
downloadpandoc-3190ce95c2175936ffded9ecf356d9ac1cc15d8a.tar.gz
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.
Diffstat (limited to 'src/Text/Pandoc/Citeproc.hs')
-rw-r--r--src/Text/Pandoc/Citeproc.hs2
1 files changed, 1 insertions, 1 deletions
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'