From a3729ef2da06aca1799bdd57ada12f47c04b93e2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Oct 2019 15:05:22 -0700 Subject: RST writer: proper handling of :align: on figures, images. When the image has the `align-right` (etc.) class, we now use an `:align:` attribute. Closes #4420. --- test/command/4420.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/command/4420.md (limited to 'test') diff --git a/test/command/4420.md b/test/command/4420.md new file mode 100644 index 000000000..3e7008935 --- /dev/null +++ b/test/command/4420.md @@ -0,0 +1,22 @@ +``` +% pandoc -f native -t rst +[Image ("",["align-right"],[("width","100px")]) [Str "image"] ("foo.png","")] +^D +|image| + +.. |image| image:: foo.png + :align: right + :width: 100px +``` + +``` +% pandoc -f native -t rst +[Para [Image ("",["align-right"],[("width","100px")]) [Str "image"] ("foo.png","fig:test")]] +^D +.. figure:: foo.png + :alt: test + :align: right + :width: 100px + + image +``` -- cgit v1.2.3