title: Why does toc_depth doesn't work with rmarkdown theme?
body: <p>I want to create a Rmarkdown html report with the <code>downcute</code> (chaos) theme from the package <code>rmdformats</code>. Now everything works except for the <code>toc_depth</code> argument in my <code>yaml</code> header. The table of contents will only show <code>h1</code> and <code>h2</code>'s.</p>
  <pre><code>install.packages(&quot;rmdformats&quot;)
  </code></pre>
  <pre><code>---
  title: &quot;Title&quot;
  date: &quot;`r format(Sys.time(), '%d %B, %Y')`&quot;
  output:
    rmdformats::downcute:
      code_folding: hide
      toc_depth: 5
      self_contained: true
      thumbnails: false
      lightbox: true
      downcute_theme: &quot;chaos&quot;
  pkgdown:
    as_is: true
  ---
  
  # h1
  
  ## h2
  
  ### h3
  
  #### h4
  
  ##### h5
  </code></pre>