```
% pandoc -f typst --wrap=none
#rotate(90deg, figure(
  [body text here inside rotate],
  caption: "Figure 1: How a caption gets lost when rotating",
  supplement: none,
))
^D
<div class="rotate" data-angle="90.0">
<figure>
<p>body text here inside rotate</p>
<figcaption><p>Figure 1: How a caption gets lost when rotating</p></figcaption>
</figure>
</div>

```
