mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
cc72b8054c
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.
682 B
682 B
% pandoc -t typst
{width=3in}
{width=3in height=2in}

And inline: {height=2in} and
.
^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")).