I have tried several permutations and example code from other questions, but no matter what I try I cannot get a table of contents to appear when using officedown. I can get it to appear when using regular Rmarkdown output, but I would like to use officedown for other reasons. How do I get a table of contents to appear? I am using pandoc 3.1.11
Sample Code:
---
title: "Example"
output:
officedown::rdocx_document:
toc: TRUE
toc_depth: 3
---
```{r setup, include=FALSE}
library(officedown)
library(officer)
```
# Table of contents
```{r, echo=FALSE}
block_toc(level = 3)
```
# Title
## Subtitle
This is my output when rendered
Recognized by R Language Collective
2