Skip to content

Commit

Permalink
add test/command
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Sep 26, 2023
1 parent 1fed5a7 commit c8c5cc6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions test/command/9104.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## wrap in box() when dimensions are specified

```
% pandoc -t typst
the page menu [![](./page-menu-icon.jpg){width="3mm"}]{custom-style="Parameter"}. The various
commands
^D
the page menu #box(image("./page-menu-icon.jpg", width: 3mm)). The
various commands
```

```
% pandoc -t typst
the page menu [![](./page-menu-icon.jpg){width="3mm" height="1em"}]{custom-style="Parameter"}.
^D
the page menu
#box(image("./page-menu-icon.jpg", width: 3mm, height: 1em)).
```

```
% pandoc -t typst
the page menu [![](./page-menu-icon.jpg){height="1em"}]{custom-style="Parameter"}.
^D
the page menu #box(image("./page-menu-icon.jpg", height: 1em)).
```

## but not when they are not

```
% pandoc -t typst
the page menu ![](./page-menu-icon.jpg).
^D
the page menu #image("./page-menu-icon.jpg").
```

0 comments on commit c8c5cc6

Please sign in to comment.