如何在R Bookdown(GitBook)中更改TOC深度?

Geg*_*naV 6 r gitbook bookdown

我通过R bookdown使用GitBook格式。我需要在目录(TOC)中至少使用四个级别。默认值为三。如何更改TOC的深度?


更新

现在,我_output.yml文件中与toc相关的内容如下所示:

bookdown::gitbook:
  config:
    toc_depth: 4
    toc:
      collapse: section
      scroll_highlight: yes
      before: |
        <li><a href="../index.html"><b>Main</b></a></li>
      after: |
        <li><a href="../index.html"><b>Main</b></a></li>
Run Code Online (Sandbox Code Playgroud)

config: toc_depth: 4 不起作用。