R markdown TOC question

Hello Team,
I wrote a simple R markdown code using TOC statement in header (please review the code below). I hope the result of html file will show the table of content on the top. But it doesn't. After knit, there is not error message. Could someone can tell me where should I update?

title: "Untitled"
author: "FirstName LastName"
date: "2/2/2022"
TOC: true

knitr::opts_chunk$set(echo = TRUE)

Header 1

Header 2

Header 3

I got the problem, the TOC should be lower case :grinning:

Perhaps, you must type:


(not true)

Write the first letter with a capital letter

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 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.