From 0d2114ee4e3974583ee84e8a4e992562d6502f66 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 5 Apr 2025 11:31:35 -0700 Subject: 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. --- test/command/10758.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/command/10758.md (limited to 'test/command') diff --git a/test/command/10758.md b/test/command/10758.md new file mode 100644 index 000000000..885d26413 --- /dev/null +++ b/test/command/10758.md @@ -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 +![Foo *emphasis*](media/rId20.jpg) +``` -- cgit v1.2.3