### Bug description

The following example documents the problem.  No figure caption or figure number appears unless the first chunk is removed.  I'm using Quarto 1.3.55 on Ubuntu 22 and running `quarto render test.qmd`.

````
---
title: "Test"
format:
  html:
    self-contained: true
---


```{r}
x <- 3
```

```{dot}
//| label: fig-labt
//| fig-cap: "This is a figure caption"
digraph D {
  FOO [label="xyz"];
  FOO -> {BAR, BAZ};
}
```
````

### 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-12-13T18:31:50Z
harrelfe
bug crossref
v1.4
closed
graphviz dot cell ignores figure caption and other info unless it's the first chunk in the script
https://github.com/quarto-dev/quarto-cli/issues/3660