pandoc/test/command/4420.md
John MacFarlane a3729ef2da 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.
2019-10-09 15:05:22 -07:00

22 lines
394 B
Markdown

```
% 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
```