git.iko.soy/typeable/pandoc
on master help sign in
Use document's lang for the lang parameter of citeproc...

even if it differs from localeLanguage. (It is designed to be possible to override the locale language, and this is especially useful when one wants to use the unicode extension syntx, e.g. fr-u-kb.)

commit7a7fefce5ef395f1c88db8b984618a4bd3c7d916 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 15 Apr 2021, 17:45 (6 years ago) parent099ac99
1 file changed+1−2
src/Text/Pandoc/Citeproc.hs+1−2
src/Text/Pandoc/Citeproc.hs+1−2
@@ -74,8 +74,7 @@ processCitations (Pandoc meta bs) = do
7474
7575 let linkCites = maybe False truish $ lookupMeta "link-citations" meta
7676 let opts = defaultCiteprocOptions{ linkCitations = linkCites }
77− let result = Citeproc.citeproc opts style (localeLanguage locale)
78− refs citations
77+ let result = Citeproc.citeproc opts style mblang refs citations
7978 mapM_ (report . CiteprocWarning) (resultWarnings result)
8079 let sopts = styleOptions style
8180 let classes = "references" : -- TODO remove this or keep for compatibility?