Description
Pandoc does not output citation information when reading JATS XML files.
STEPS TO REPRODUCE:
Generate two JATS XML files with citation info by doing
pandoc source.md -s --citeproc -f markdown -t jats+element_citations -o jats-element.xml
pandoc source.md -s --citeproc -f markdown -t jats -o jats-mixed.xml
with the markdown source.md to generate a jats-element.xml
and jats-mixed.xml
. Then inspect the "references" objects output by
pandoc jats-mixed.xml -s --citeproc -f jats -t json
pandoc jats-element.xml -s --citeproc -f jats -t json
in the AST dumped as json. Might be convenient to pipe the outputs through
python -c 'import sys, json; print(json.load(sys.stdin)["meta"]["references"]["c"])'
The citation info read from jats-mixed.xml does not have any details about the reference. And for jats-element.xml
it appears zero citation information was read.
WHAT EXPECTED:
Something like the references output from the markdown directly:
pandoc source.md -s --citeproc -f markdown -t json
with all the details about the citations.
Pandoc version?
Both versions 2.14.3 and 2.17.1.1 (on Fedora 35)
I've also tried outputing HTML with many different options but citations information in the input JATS XML never appears in the output.