mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-09 09:05:41 +00:00
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.
19 lines
287 B
Markdown
19 lines
287 B
Markdown
```
|
|
% 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" , "" )
|
|
]
|
|
]
|
|
]
|
|
```
|