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 should include <p> or <title> tag in image caption #5290

Closed
arfon opened this issue Feb 10, 2019 · 0 comments · Fixed by #5292
Closed

JATS writer should include <p> or <title> tag in image caption #5290

arfon opened this issue Feb 10, 2019 · 0 comments · Fixed by #5292

Comments

@arfon
Copy link
Contributor

arfon commented Feb 10, 2019

Problem

Simple Markdown figures seem to fail the PubMed Central validator as they are missing the required tags around the caption:

screen shot 2019-02-10 at 7 04 50 am

Pandoc version

pandoc 2.6

Steps to recreate

This URL on Try pandoc

![Figure 1. Citation counts for PLOS Biology articles published in 2010. Scopus citation 
counts plotted as a probability distribution for all 197 *PLOS Biology* research articles 
published in 2010. Data collected May 20, 2013. Median 19 citations; 10% of papers 
have at least 50 citations.](/images/2013-12-11_figure_1.svg)

produces

<fig>
  <caption>Figure 1. Citation counts for PLOS Biology articles published
  in 2010. Scopus citation counts plotted as a probability distribution
  for all 197 <italic>PLOS Biology</italic> research articles published
  in 2010. Data collected May 20, 2013. Median 19 citations; 10% of
  papers have at least 50 citations.</caption>
  <graphic mimetype="image" mime-subtype="svg+xml" xlink:href="/images/2013-12-11_figure_1.svg" xlink:title="" />
</fig>

Desired behaviour

Produce either:

<fig>
  <caption><title>Figure 1. Citation counts for PLOS Biology articles published
  in 2010. Scopus citation counts plotted as a probability distribution
  for all 197 <italic>PLOS Biology</italic> research articles published
  in 2010. Data collected May 20, 2013. Median 19 citations; 10% of
  papers have at least 50 citations.</title></caption>
  <graphic mimetype="image" mime-subtype="svg+xml" xlink:href="/images/2013-12-11_figure_1.svg" xlink:title="" />
</fig>

or

<fig>
  <caption><p>Figure 1. Citation counts for PLOS Biology articles published
  in 2010. Scopus citation counts plotted as a probability distribution
  for all 197 <italic>PLOS Biology</italic> research articles published
  in 2010. Data collected May 20, 2013. Median 19 citations; 10% of
  papers have at least 50 citations.</p></caption>
  <graphic mimetype="image" mime-subtype="svg+xml" xlink:href="/images/2013-12-11_figure_1.svg" xlink:title="" />
</fig>
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

Successfully merging a pull request may close this issue.

1 participant