yaml option `toc` doesn't work for `rmarkdown::github_document`

I follow the tutorial on the RStudio site and add toc: true in the yaml options. However, the previewed document doesn't have a table of content.

Here is my yaml options.

---
output: 
    github_document:
        df_print: tibble
        toc: true
        toc_depth: 2
bibliography: add.bib
---

The .Rmd document is posted on the Github.
And the .md document is knited and posted here.

Anyone do sort of things on the Github before?

2 Likes

Unfortunately, it is currently not working

3 Likes

Thanks. I change github_document into md_document and get the toc.

2 Likes

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