aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-02-17 23:03:32 +0100
committerAlbert Krewinkel <[email protected]>2023-02-18 00:09:21 +0100
commitd08d1c04c54a91eceff2ad3e8cc628b730a7cc9b (patch)
tree2ac1a95a72e96766b4f9ab407f9dad67651f3eed /test/command
parentda9c196e09ecd87b2d727294810357f485733be8 (diff)
JATS writer: include alt-text in `<graphic>`, `<inline-graphic>` elements
Closes: #8631
Diffstat (limited to 'test/command')
-rw-r--r--test/command/figures-jats.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/figures-jats.md b/test/command/figures-jats.md
index a5089df2a..bc13bcb5b 100644
--- a/test/command/figures-jats.md
+++ b/test/command/figures-jats.md
@@ -12,3 +12,20 @@ Para [Image ("fig-id-2",[],[]) [] ("foo.png", "fig:")]]]
<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>
+```