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 writer regression: incorrect placement of <ref-list> inside <body> instead of inside <back> when heading inside input document #9017
Comments
The problem is splitBackBlocks in 4f44058 |
Added a header to the test case in #8364, and it still created a back section. I think this is because that test specifies reference-section-title in the metadata. |
Here's the diagnosis. If you end your file with a header or provide If you don't create a section heading for your references, then One possible fix would be to look for a |
Thank for this information, I think I now see a work-around so that I can use the latest release for my document processing. Some quick information to share since it was confusing me regarding this:
It seems if one does BOTH end a file with header "# References" AND provides a |
Regarding possible fixes, I'm not sure ... but another possibility is to essentially treat |
This was wrongly closed I think. The commit above has nothing to do with this issue and I think it was just a typo. |
Never mind - it was properly closed but not by the referenced issue above. |
REPO STEPS
Using input-with-heading.md
outputs
EXPECTED
The
<ref-list>
element should be inside<back>
, not<body>
.NOTES
Changing the input heading from "# I like" to just text "I like" eliminates the bug. E.g. using input-no-heading.md outputs the
<ref-list>
inside the<back>
.Pandoc version?
I reproduce this with 3.1.6.2, 3.1.6.1, 3.1.4, but not 3.1.3. So this appears to be a regression from 3.1.3 to 3.1.4.
The text was updated successfully, but these errors were encountered: