flying-sheep / rust-rst

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

Handle images with multiple options #53

Closed jelmer closed 3 months ago

jelmer commented 3 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 3 months ago

Great, thanks!