Don't add pandoc-citeproc filter if natbib or biblatex is used

See https://github.com/jgm/pandoc-templates/issues/42
This commit is contained in:
Florian Eitel 2013-09-30 15:55:59 +02:00
parent 3081fce90e
commit a26d25a80b

View file

@ -960,7 +960,10 @@ 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 &&
isNothing (M.lookup "biblatex" metadata) &&
all (\f -> takeBaseName f /= "pandoc-citeproc")
filters -> "pandoc-citeproc" : filters
_ -> filters
let plugins = map externalFilter filters'