New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defaults files cannot specify order between filter and citeproc #8737
Comments
A zip archive with the files described above: bug-report.zip |
The solution is to omit the -- File: citeproc.lua
function Pandoc (doc)
return pandoc.utils.citeproc(doc)
end ...which you can then include in a specific position in your # File: defaults.yaml
filters:
- "${.}/include-files.lua"
- "${.}/citeproc.lua" |
Thank you for this excellent report. The intended way to do this is the following (the filters:
- type: lua
path: '${.}/include-files.lua'
- type: citeproc It seems that we need to make this more obvious in the manual, so I'll categorize this as a documentation bug. |
Also the docs entry for filters still has an example with |
Doesn't this also work?
|
You cannot specify the relative ordering of filters and citeproc in a defaults file.
For instance, with the following set up:
defaults.yaml
sample.md
sample.bib
chapters/chapter1.md
We all love @BenjaminHornigold's famous proof. But is it real? No. Probably not.
include-files.lua
frompandoc/lua-filters
The expected output of
pandoc -d defaults.yaml
would be something like:However, the actual the result is:
Pandoc version?
I'm using Pandoc 3.1.1 on macOS.
The text was updated successfully, but these errors were encountered: