mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
29c5afb305
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.
10 lines
183 B
Markdown
10 lines
183 B
Markdown
```
|
|
% pandoc -f native -t rst
|
|
[Para [Image ("",["align-right"],[("width","100px")]) [Str "image"] ("foo.png","fig:test")]]
|
|
^D
|
|
|image|
|
|
|
|
.. |image| image:: foo.png
|
|
:width: 100px
|
|
```
|