### Bug description

Consider the following minimal working example:

``````
---
title: "MWE"
format: docx
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document.
To learn more about Quarto see <https://quarto.org>.

::: {#fig-r-logos layout-ncol="2"}
![R Logo](R_logo.svg.png){#fig-r-logo-1}

![R Logo](R_logo.svg.png){#fig-r-logo-2}

Awesome Programming Language Logo.
:::
``````

`quarto render mwe.qmd` produces

![Screenshot from 2022-11-23 17-14-51](https://user-images.githubusercontent.com/1506457/203509573-4c3f50dd-c718-4405-8a95-bf16ad9ffa21.png)

Note the subfigures overflow the width available.

# Expected Output

Subfigure is resized to fit in the available space.

![Screenshot from 2022-11-23 17-19-40](https://user-images.githubusercontent.com/1506457/203510243-c9688d2d-f13a-49bd-8cd6-2429ce1574f1.png)

# Supporting Files

[mwe.zip](https://github.com/quarto-dev/quarto-cli/files/10074059/mwe.zip)

# Environment Information

```
[✓] Checking Quarto installation......OK
      Version: 1.2.79
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2022-11-23T09:22:00Z
rgaiacs
enhancement docx
v1.4
open
Subfigure overflows width available space. 
https://github.com/quarto-dev/quarto-cli/issues/3435