-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
JATS reader losing citation reference identities #8007
Comments
Are you sure you're using 2.18?
Perhaps it's still not what you want, but it's a different issue if so. |
Note that 2.18 contains c18bb2a which was explicitly designed to round-trip the ids, stripping the |
Yep.
You've got a typo in what you tested with:
but you want:
|
OK, now I see the same as you:
|
I see the issue now; it's in the treatment of xref elements by the JATS reader. |
BTW, I have not yet dug into why I see extra |
The parentheses are added by citeproc; it's part of the CSL style. The style could be adjusted, but probably you |
Thanks for that tip, that is working well now. Just as an FYI of an end-user corner case: |
Something funky is going on with the ref ids of citations when either writing or reading JATS. I suspect it's an issue with reading JATS.
REPO STEPS
With start.md
GOT
EXPECTED
start.md
androundtrip.md
to be the same.That rountrip isn't really the issue that affects me. The bigger issue is that the command generating
thru-jats.html
fails to handle citations properly:It should generated roughly the same content as
skip-jats.html
. But to get that I have to do an ugly hack to jats.xml with sed to make it work (thru-hack.html
).Also, technically I'm starting with separate
.bib
files, but I've simplified this down tostart.md
. I'm pretty sure if this issue is fixed then it will fix the actual issue I'm hitting.Pandoc version?
2.18
Happy bug squashing 🕷️ 🐛 🐞 😄!
The text was updated successfully, but these errors were encountered: