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 reader parses figures with duplicate elements #8669

Closed
jgm opened this issue Mar 5, 2023 · 0 comments
Closed

JATS reader parses figures with duplicate elements #8669

jgm opened this issue Mar 5, 2023 · 0 comments

Comments

@jgm
Copy link
Owner

jgm commented Mar 5, 2023

Consider this jats figure:

<fig id="f1" orientation="portrait" position="float">
<label>FIG. 1.</label>
<caption>
<p>(a) Schematic of the working principles of HFM, (b) a typical application
scheme for an electric bias in HFM, (c) regulation the conformations and
dynamics (trapping, concentration, and sudden stretching) of λ-DNA molecules
in HFM, and (d) schematic of the trapping location regulation (enhanced online).
[URL: <ext-link ext-link-type="uri" xlink:href="https://dx.doi.org/10.1063/1.4762852.1">
http://dx.doi.org/10.1063/1.4762852.1</ext-link>]
<alternatives>
<media id="v1" mime-subtype="avi" mimetype="video" orientation="portrait"
position="anchor" specific-use="original-format" xlink:href="v1">
<object-id pub-id-type="doi" specific-use="metadata">10.1063/1.4762852.1</object-id>
</media>
<media mime-subtype="mpeg" mimetype="video" orientation="portrait"
position="anchor" specific-use="archival-format" xlink:href="v1"></media>
<media mime-subtype="x-flv" mimetype="video" orientation="portrait"
position="anchor" specific-use="online-format" xlink:href="v1"></media>
</alternatives>
</p>
</caption>
<graphic orientation="portrait" position="float" xlink:href="f1"/>
<graphic id="f1a" orientation="portrait" position="float" xlink:href="dummy1.png"/>
<graphic id="f1b" orientation="portrait" position="float" xlink:href="dummy2.png"/>
<graphic id="f1c" orientation="portrait" position="float" xlink:href="dummy3.png"/>
<graphic id="f1d" orientation="portrait" position="float" xlink:href="dummy4.png"/>
</fig>

Pandoc converts it to HTML as

<figure id="f1">
<div class="caption">
<h6></h6>
<p>(a) Schematic of the working principles of HFM, (b) a typical
application scheme for an electric bias in HFM, (c) regulation the
conformations and dynamics (trapping, concentration, and sudden
stretching) of λ-DNA molecules in HFM, and (d) schematic of the trapping
location regulation (enhanced online). [URL: <a href="#">
http://dx.doi.org/10.1063/1.4762852.1</a>] 10.1063/1.4762852.1</p>
</div>
<p><img src="f1" /></p>
<p><img src="dummy1.png" id="f1a" /></p>
<p><img src="dummy2.png" id="f1b" /></p>
<p><img src="dummy3.png" id="f1c" /></p>
<p><img src="dummy4.png" id="f1d" /></p>
<figcaption>(a) Schematic of the working principles of HFM, (b) a
typical application scheme for an electric bias in HFM, (c) regulation
the conformations and dynamics (trapping, concentration, and sudden
stretching) of λ-DNA molecules in HFM, and (d) schematic of the trapping
location regulation (enhanced online). [URL: <a href="#">
http://dx.doi.org/10.1063/1.4762852.1</a>]
10.1063/1.4762852.1</figcaption>
</figure>

Note that the caption appears twice, in two different ways. @tarleb I assume this is a bug?

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

No branches or pull requests

1 participant