Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. If ( ! start_at_base_level & level = 0) start_at_base_level <<- TRUE #' `toc_depth = 3`, which results in a TOC of at most 3 levels. #' toc_depth Maximum depth for TOC, relative to base_level. #' prior to the first header at the base_level are dropped silently. ![]() #' base_level Starting level of the lowest header level. ![]() #' include the TOC itself in the TOC (but why?). #' header with this format will not be included in the TOC. #' toc_header_name The table of contents header name. #' filename Name of RMarkdown or Markdown document #' Just drop in a chunk where you want the toc to appear (set `echo=FALSE`): #' `toc_header_name` to exclude the table of contents header from the TOC, or #' Table of Contents itself must be manually included in the text. ![]() #' Because this function returns only the markdown list, the header for the #' WARNING: This function only works with hash-tag headers. Returns a markdown list with links to the #' A simple function to extract headers from an RMarkdown or Markdown document
0 Comments
Leave a Reply. |