### Bug description

From https://stackoverflow.com/questions/73684948/how-to-prevent-mermaid-flow-charts-overflowing-in-quarto

````markdown
---
title: "Workflow"
authors: "Satya P"
format: pdf
---

```{mermaid}
%%| fig-height: 9

flowchart TB
1(Available Data)

1 --> 2(aaaaaaaaa)

1 --> 3(bbbbbbbbbb)
1 --> 4(cccccccccc)
1 --> 5(ddddddddddd)
1 --> 7(eeeeeeeeee)
1 --> 8(fffffffffff)
1 --> 9(ggggggggggg)

7 --> 10(hhhhhhhhh)
8 --> 10(hhhhhhhhh)
9 --> 10(hhhhhhhhh)


3 --> 11(iiiiiiiii)
4 --> 11(iiiiiiiii)
5 --> 11(iiiiiiiii)

10 --> 12(jjjjjjjjj)
11 --> 12(jjjjjjjjj)

12 --> |kkkkkkkkk| 13(lllllllll)

13 --> |"mmmmmmmmmmm"| 14(nnnnnnnnnnn)

14 --> 15(oooooooooo)
2 -.-> 15
```
`````

This gives a crop output 
![image](https://user-images.githubusercontent.com/6791940/190150144-2ff17569-5b51-4cc8-9d6d-bbe989426ab9.png)

Possibly due to sizing when we do the screenshot. 

Opening an issue to track if we can do something for wide diagrams like this
cscheid
2022-09-14T12:11:47Z
cderv
bug windows mermaid
v1.4
open
mermaid diagram is cropped in PDF outputs
https://github.com/quarto-dev/quarto-cli/issues/2438