Description Usage Arguments Value
View source: R/make_readme_toc.R
The sections in a README.md file are automatically numbered hierarchically. Then, the line containing the string "toc" is replaced with a table of contents.
1 | make.readme.toc(text, min.level = 2L)
|
text |
multiple lines of text of a README.md file |
min.level |
the minimum section nesting level included in the table of contents. This is set to 2, meaning that there should be at most one "#" level with the overall title, while levels starting with "##" are included into the table of contents. |
the text with sections numbered and a table of contents included
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.