### Bug description

See the following document. Removing the centering code or adding a caption leads to the figure's inclusion again.

```md
---
title: "Figure Test"
format: revealjs
---

![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Lorem_ipsum.jpg/432px-Lorem_ipsum.jpg){fig-align="center"}
```

- OS: Ubuntu 18.04.6 LTS
- RStudio: RStudio 2022.02.1+461 "Prairie Trillium" Release (8aaa5d470dd82d615130dbf663ace5c7992d48e3, 2022-03-17) for Ubuntu Bionic
  Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
- `quarto::quarto_version()`: `1.2.157`

### 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.
2022-09-27T16:30:53Z
fkohrt
bug
closed
Centered figure without caption not displayed for revealjs
https://github.com/quarto-dev/quarto-cli/issues/2632