mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-13 02:55:55 +00:00
861 B
861 B
Figure float with caption at the figure level.
% pandoc -f native -t jats
[Figure ("fig-id",[],[]) (Caption Nothing [Para [Str "Caption"]]) [Para [Str "Text"],
Para [Image ("fig-id-2",[],[]) [] ("foo.png", "fig:")]]]
^D
<fig id="fig-id">
<caption><p>Caption</p></caption>
<p>Text</p>
<graphic id="fig-id-2" mimetype="image" mime-subtype="png" xlink:href="foo.png" xlink:title="fig:" />
</fig>
Figure float with caption and alt text.
% pandoc -f native -t jats
[Figure ("fig-id",[],[]) (Caption Nothing [Para [Str "Caption"]]) [Para [Str "Text"],
Para [Image ("fig-id-2",[],[]) [Str "alt"] ("foo.png", "fig:")]]]
^D
<fig id="fig-id">
<caption><p>Caption</p></caption>
<p>Text</p>
<graphic id="fig-id-2" mimetype="image" mime-subtype="png" xlink:href="foo.png" xlink:title="fig:">
<alt-text>alt</alt-text>
</graphic>
</fig>