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:
parent
3081fce90e
commit
a26d25a80b
1 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue