Follow up on the [comment](https://github.com/quarto-dev/quarto-cli/pull/231#issuecomment-998496713) I made on #231, potentially related to #224, #231, and #232.

Hopefully, the following example can be reproduced on your side @cderv 

<details>
<summary>revealjs_figalign.qmd</summary>
<!--All you need is a blank line-->

```markdown
---
format: revealjs
---

## No `fig-align` nor caption 

![](https://placekitten.com/300/300)

## No `fig-align` but caption 

![caption](https://placekitten.com/300/300)

## With `fig-align="center"` 

![](https://placekitten.com/300/300){fig-align="center"}

## Caption and `fig-align="center"`

![caption](https://placekitten.com/300/300){fig-align="center"}

## With `fig-align="right"`

![](https://placekitten.com/300/300){fig-align="right"}

## Caption and `fig-align="right"`

![caption](https://placekitten.com/300/300){fig-align="right"}

```
</details>

**Findings:**

1.  If there is a single figure on a slide without caption nor a `fig-align` attribute, the figure is aligned to the left, which is contradictory to the default [as described in the documentation](https://quarto.org/docs/authoring/figures-and-layout.html#figure-alignment). 
2. Interestingly, if a caption is given, the figure will be centered, but the caption is aligned to the left.
3. To center a single figure without caption, one need to manually add the `fig-align="center"` attribute
4. Captions are always aligned to the left no matter where the figure is placed.

**Desired outcome:**

1. If a figure is included without caption, it should be placed at the center
2. If a figure is included with a caption, the caption should be placed right below the figure.


 
2021-12-21T16:47:56Z
juliantao
closed
revealjs `fig-align` and caption
https://github.com/quarto-dev/quarto-cli/issues/233