Files
John MacFarlane cc72b8054c Typst writer: include alt attributes on images.
This borrows a test case taken mostly from #11394 by @mcanouil
but the code is fresh.  The behavior is similar to what we
have with the HTML and LaTeX writers.

Obsoletes #11394.

Co-authored by @mcanouil and Claude Opus 4.6.
2026-02-14 16:19:41 +01:00

682 B

% pandoc -t typst
![minimal](command/minimal.svg){width=3in}

![minimal](command/minimal.svg){width=3in height=2in}

![minimal](command/minimal.svg)

And inline: ![minimal](command/minimal.svg){height=2in} and
![minimal](command/minimal.svg).
^D
#figure(image("command/minimal.svg", width: 3in, alt: "minimal"),
  caption: [
    minimal
  ]
)

#figure(image("command/minimal.svg", height: 2in, width: 3in, alt: "minimal"),
  caption: [
    minimal
  ]
)

#figure(image("command/minimal.svg", alt: "minimal"),
  caption: [
    minimal
  ]
)

And inline:
#box(image("command/minimal.svg", height: 2in, alt: "minimal")) and
#box(image("command/minimal.svg", alt: "minimal")).