Skip to content
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 bug: Don't include role attribute on <bold> tags #4937

Closed
coryschires opened this issue Sep 27, 2018 · 2 comments
Closed

JATS writer bug: Don't include role attribute on <bold> tags #4937

coryschires opened this issue Sep 27, 2018 · 2 comments

Comments

@coryschires
Copy link

Problem

Some of our Pandoc-generated JATS documents are failing the PubMed Central validator with:

45716829-b18d9a00-bb5d-11e8-8170-1ace7b03d2f5

And, based on my understanding of the JATS spec for <bold>, this validation error is accurate: <bold> cannot have a role attribute.

Pandoc version

I'm using the latest version of Pandoc (2.3)

Steps to recreate

  1. Run pandoc --from markdown --to jats to open the interactive mode
  2. Paste in: This include **some bold** text
  3. It will return <p>This include <bold role=\"strong\">some bold</bold> text</p>

Desired behavior

  1. Run pandoc --from markdown --to jats to open the interactive mode
  2. Paste in: This include **some bold** text
  3. It should return: <p>This include <bold>some bold</bold> text</p>
@jgm jgm closed this as completed in 5365779 Sep 27, 2018
@jgm
Copy link
Owner

jgm commented Sep 27, 2018

Thanks for the report!

@coryschires
Copy link
Author

Thanks for the super quick fix!

I can confirm this bug is fixed in >= 2.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants