You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't reproduce the issue after cleaning up the input file and updating to the latest code.
<sec id="images">
<title>Images</title>
<p> A Figure with title according to JATs graphic tag reference. Example 2</p>
<fig id="F1">
<caption>
<title> The Titel </title>
<p> The paragraph </p>
</caption>
<graphic mimetype="image" mime-subtype="jpeg" xlink:href="../media/lalune.jpg" xlink:title="Voyage dans la Lune" />
</fig>
<p> <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="../media/lalune.jpg" xlink:title="Voyage dans la Lune" /> </p>
<graphic mimetype="image" mime-subtype="jpeg" xlink:href="../media/lalune.jpg" xlink:title="Voyage dans la Lune" />
</sec>
Results in:
$ stack run -- -f jats jats.xml -t native
[Header 1 ("images",[],[]) [Str "Images"]
,Para [Str "A",Space,Str "Figure",Space,Str "with",Space,Str "title",Space,Str "according",Space,Str "to",Space,Str "JATs",Space,Str "graphic",Space,Str "tag",Space,Str "reference.",Space,Str "Example",Space,Str "2"]
,Para [Image ("F1",[],[]) [Str "The",Space,Str "Titel",LineBreak,Str "The",Space,Str "paragraph"] ("../media/lalune.jpg","fig:Voyage dans la Lune")]
,Para [Image ("",[],[]) [] ("../media/lalune.jpg","Voyage dans la Lune")]
,Para [Image ("",[],[]) [] ("../media/lalune.jpg","Voyage dans la Lune")]]
Which is consistent with pandoc's current capabilities.
HTML is also fine
<h1 id="images">Images</h1>
<p>A Figure with title according to JATs graphic tag reference. Example 2</p>
<figure>
<img src="../media/lalune.jpg" title="Voyage dans la Lune" id="F1" alt="The Titel The paragraph" /><figcaption aria-hidden="true">The Titel<br />
The paragraph</figcaption>
</figure>
<p><img src="../media/lalune.jpg" title="Voyage dans la Lune" /></p>
<p><img src="../media/lalune.jpg" title="Voyage dans la Lune" /></p>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I couldn't reproduce the issue after cleaning up the input file and updating to the latest code.
Results in:
Which is consistent with pandoc's current capabilities.
HTML is also fine
Beta Was this translation helpful? Give feedback.
All reactions