Improved implicit pandoc-citeproc inclusion.
The filter pandoc-citeproc is automatically used when
`--bibliography` is specified on the command line, unless
`--natbib` or `--biblatex` is used.
However, previously this only worked if `--bibliography`
was spelled out in full, and not if `--biblio` was used.
This patch fixes that problem.
commite44149931ef8db3b42614e47a316d3ba27d1e337
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 16 Nov 2015, 09:46 (11 years ago)
parenta081df1
pandoc.hs+1−1
@@ -1139,7 +1139,7 @@ main = do
11391139
11401140
11411141 -- --bibliography implies -F pandoc-citeproc for backwards compatibility:
1142− let needsCiteproc = any ("--bibliography" `isPrefixOf`) rawArgs &&
1142+ let needsCiteproc = M.lookup "bibliography" (optMetadata opts) /= Nothing &&
11431143 optCiteMethod opts `notElem` [Natbib, Biblatex] &&
11441144 "pandoc-citeproc" `notElem` map takeBaseName filters
11451145 let filters' = if needsCiteproc then "pandoc-citeproc" : filters