diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-10-27 21:04:24 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-10-27 21:04:24 -0700 |
commit | 3190ce95c2175936ffded9ecf356d9ac1cc15d8a (patch) | |
tree | 1f6444a3280fe952b670dcdbc1c0d3fe91f627ea | |
parent | 3d93414e5d433cad21ae2cbf45658d5789571f57 (diff) | |
download | pandoc-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.
-rw-r--r-- | src/Text/Pandoc/Citeproc.hs | 2 |
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' |