flying-sheep / rust-rst

a reStructuredText parser and renderer
https://crates.io/crates/rst
Apache License 2.0
98 stars 10 forks source link

Handle images with multiple options #53

Closed jelmer closed 2 months ago

jelmer commented 2 months ago

Previously, only a single option was handled correctly with subsequent options being treated as regular text after the image.

This PR fixes the parser so it handles e.g.:

.. |subst| image:: thing.png
   :alt: A thing
   :target: foo.html
flying-sheep commented 2 months ago

Great, thanks!