Files
pandoc/test/command/rst_block_subst.md
T
John MacFarlane 9c36d884d5 RST reader: parse :alt: on figure.
Also give a better default if `alt` is not specified, using
the stringified caption rather than the filename.

Partially addresses #11140.

Add failing test case for Markdown writer issue in #11140.
2025-09-15 10:50:04 +02:00

287 B

% pandoc -f rst -t native
|figure05|

.. |figure05| figure:: img/dummy.png

   capt
^D
[ Figure
    ( "" , [] , [] )
    (Caption Nothing [ Plain [ Str "capt" ] ])
    [ Plain
        [ Image
            ( "" , [] , [] ) [ Str "capt" ] ( "img/dummy.png" , "" )
        ]
    ]
]