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.)
This commit is contained in:
parent
099ac9985b
commit
7a7fefce5e
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ processCitations (Pandoc meta bs) = do
|
|||
|
||||
let linkCites = maybe False truish $ lookupMeta "link-citations" meta
|
||||
let opts = defaultCiteprocOptions{ linkCitations = linkCites }
|
||||
let result = Citeproc.citeproc opts style (localeLanguage locale)
|
||||
refs citations
|
||||
let result = Citeproc.citeproc opts style mblang refs citations
|
||||
mapM_ (report . CiteprocWarning) (resultWarnings result)
|
||||
let sopts = styleOptions style
|
||||
let classes = "references" : -- TODO remove this or keep for compatibility?
|
||||
|
|
Loading…
Add table
Reference in a new issue