Files
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

401 B

% 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)