mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
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.
35 lines
682 B
Markdown
35 lines
682 B
Markdown
```
|
|
% 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")).
|
|
|
|
```
|