mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 08:46:56 +00:00
This fixes a number of regressions from pandoc 2.x. Properly handle caption, alt attribute in figures. No longer treat a paragraph with a single image in it as a figure (we have a dedicated Figure element now). Closes #8930, closes #8871.
264 B
264 B
Figure float with caption at the figure level.
% pandoc -f native -t rst
[Figure ("fig-id",[],[]) (Caption Nothing [Para [Str "Caption"]]) [Para [Image ("",[],[]) [] ("foo.png", "fig:")]]]
^D
.. figure:: foo.png
name: fig-id
:alt: fig:
Caption