I want TOC indents according to the header level.
My sample document is as follows:
# Tutorial
#
#
#
I am compiling a document Rmdwith:
rmarkdown::render("foo.Rmd",
output_options = HTMLlook,
output_file = "foo.html")
HTMLlook <- list(toc = TRUE,
toc_depth = 5,
toc_float = list(collapsed = FALSE,
smooth_scroll = TRUE))
This creates a document with TOC

However, I want to indent TOC (indent equivalent to header level). The required result should look like this:

Is it possible to set this parameter to renderor maybe pass css parameters to it?
source
share