mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 01:45:56 +00:00
Merge pull request #1005 from nougad/consistent_bibliography
Don't add pandoc-citeproc filter if natbib or biblatex is used
This commit is contained in:
@@ -958,7 +958,9 @@ main = do
|
||||
|
||||
-- --bibliography implies -F pandoc-citeproc for backwards compatibility:
|
||||
let filters' = case M.lookup "bibliography" metadata of
|
||||
Just _ | all (\f -> takeBaseName f /= "pandoc-citeproc")
|
||||
Just _ | optCiteMethod opts /= Natbib &&
|
||||
optCiteMethod opts /= Biblatex &&
|
||||
all (\f -> takeBaseName f /= "pandoc-citeproc")
|
||||
filters -> "pandoc-citeproc" : filters
|
||||
_ -> filters
|
||||
let plugins = map externalFilter filters'
|
||||
|
||||
Reference in New Issue
Block a user