Description Usage Arguments Examples
Get a table of contents
1 2 3 4 5 | get_toc(target = ".", ext = ".md", link_prefix = ".", skip = NULL)
get_toc_file(file, link_prefix)
get_toc_text(text, file = character(0), link_prefix = ".", split = FALSE)
|
target |
directory to scan for files |
ext |
file extension |
link_prefix |
used to link between |
skip |
character vector of file names to skip |
file |
the name of a file for building toc |
text |
to parse |
split |
logical; if |
1 2 3 4 5 6 7 8 9 10 11 12 | text <- '
How to Ski!
==============
This document will teach you how to ski. First, find snow.
## Finding some snow
To find snow, it is best to go somewhere cold.
### Cold places in the United States
Try Minnesota. It is pretty code there.
'
get_toc_text(text)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.