Quarto render to docx (word) fails if callout has a code chunk

I get the following error only with docx format (not html of pdf) if a callout contains a code chunk:

An error occurred
Found a nested callout in the document. Please fix this issue and try again.

For example the following:

---
title: "test"
format: docx
---


:::{.callout-caution}
## Running Code

```{r}
1 + 1
```

:::

Working with:

quarto --version
1.0.37

R --version
R version 4.1.2 (2021-11-01) -- "Bird Hippie"

packageVersion("knitr")
[1] ‘1.37’

I tried using different numbers of colons as I suspected confusion with the code chunk backpacks but it does not help. Any ideas? Thanks!

Thanks for the report.

I have opened an issue about this

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.