diff options
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/figures-jats.md | 17 |
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> +``` |
