mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-29 10:55:40 +00:00
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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
```
|
||||
% 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
|
||||

|
||||
```
|
||||
Reference in New Issue
Block a user