mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +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.
40 lines
721 B
Markdown
40 lines
721 B
Markdown
```
|
|
% pandoc -f rst -t native
|
|
.. figure:: example.png
|
|
:figclass: foo bar
|
|
:align: right
|
|
:width: 1in
|
|
|
|
This is a caption.
|
|
^D
|
|
[ Figure
|
|
( "" , [ "foo" , "bar" , "align-right" ] , [] )
|
|
(Caption
|
|
Nothing
|
|
[ Plain
|
|
[ Str "This"
|
|
, Space
|
|
, Str "is"
|
|
, Space
|
|
, Str "a"
|
|
, Space
|
|
, Str "caption."
|
|
]
|
|
])
|
|
[ Plain
|
|
[ Image
|
|
( "" , [] , [ ( "width" , "1in" ) ] )
|
|
[ Str "This"
|
|
, Space
|
|
, Str "is"
|
|
, Space
|
|
, Str "a"
|
|
, Space
|
|
, Str "caption."
|
|
]
|
|
( "example.png" , "" )
|
|
]
|
|
]
|
|
]
|
|
```
|