Files
pandoc/test/command/10758.md
John MacFarlane 0d2114ee4e Markdown writer: improve use of implicit figures when possible.
Closes #10758.

When the alt differs from the caption, but only as regards
formatting, we still use an implicit figure.
2025-04-05 11:32:29 -07:00

22 lines
401 B
Markdown

```
% pandoc -f native -t markdown
[ Figure
( "" , [] , [] )
(Caption
Nothing
[ Para [ Str "Foo" , Space , Emph [ Str "emphasis" ] ] ])
[ Plain
[ Image
( ""
, []
, []
)
[ Str "Foo" , Space , Str "emphasis" ]
( "media/rId20.jpg" , "" )
]
]
]
^D
![Foo *emphasis*](media/rId20.jpg)
```