diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-11-29 10:01:31 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-11-29 10:16:41 -0800 |
| commit | 513bdef40b556dfca61be2681088b3b74b86e86b (patch) | |
| tree | 29e856740a1fde3f43b3ce3b1105b44f06c82868 /test/command | |
| parent | fe799eea91089aa90b935d2cab5cd87223906f65 (diff) | |
DocBook writer: Fix position of textobject.
It is a child of `inlinemediaobject`, not `imageobject`.
Add regression tests for #8437.
Closes #8437.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/8437.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/command/8437.md b/test/command/8437.md new file mode 100644 index 000000000..fcd416239 --- /dev/null +++ b/test/command/8437.md @@ -0,0 +1,44 @@ +``` +% pandoc -f markdown -t asciidoctor +[](http://www.apache.org/licenses/LICENSE-2.0) +^D +http://www.apache.org/licenses/LICENSE-2.0[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[alt,title="title"]] +``` + +``` +% pandoc -f markdown -t docbook +[](http://www.apache.org/licenses/LICENSE-2.0) +^D +<para> + <link xlink:href="http://www.apache.org/licenses/LICENSE-2.0"><inlinemediaobject> + <imageobject> + <objectinfo> + <title>title</title> + </objectinfo> + <imagedata fileref="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /> + </imageobject> + <textobject> + <phrase>alt</phrase> + </textobject> + </inlinemediaobject></link> +</para> +``` + +``` +% pandoc -f docbook -t markdown +<para> + <link xlink:href="http://www.apache.org/licenses/LICENSE-2.0"><inlinemediaobject> + <imageobject> + <objectinfo> + <title>title</title> + </objectinfo> + <imagedata fileref="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /> + </imageobject> + <textobject> + <phrase>alt</phrase> + </textobject> + </inlinemediaobject></link> +</para> +^D +[](http://www.apache.org/licenses/LICENSE-2.0) +``` |
