diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-16 09:46:11 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-16 09:46:11 -0800 |
commit | e44149931ef8db3b42614e47a316d3ba27d1e337 (patch) | |
tree | e9cbb08f164c1241c2b2b9a77f7e3278ff23a808 | |
parent | a081df1c41f2acb900e60ce9f12d52179199d3ea (diff) | |
download | pandoc-e44149931ef8db3b42614e47a316d3ba27d1e337.tar.gz |
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.
-rw-r--r-- | pandoc.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1139,7 +1139,7 @@ main = do -- --bibliography implies -F pandoc-citeproc for backwards compatibility: - let needsCiteproc = any ("--bibliography" `isPrefixOf`) rawArgs && + let needsCiteproc = M.lookup "bibliography" (optMetadata opts) /= Nothing && optCiteMethod opts `notElem` [Natbib, Biblatex] && "pandoc-citeproc" `notElem` map takeBaseName filters let filters' = if needsCiteproc then "pandoc-citeproc" : filters |