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:
John MacFarlane 2014-01-02 21:15:41 -08:00
commit 36cda45d70

View file

@ -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'