View source: R/make_heading_table.R
make_heading_table | R Documentation |
Create a table for headings
make_heading_table(headings, offset = 5L)
headings |
an |
offest |
the offset for the yaml header (artifact of tinkr), defaults to 5L, which is for the two fences plus title, teaching, and exercises. |
a data frame with three columns:
heading the text of the heading
level the heading level
pos the position of the heading in the document
node the node containing the heading
path <- file.path(lesson_fragment(), "_episodes", "14-looping-data-sets.md")
loop <- Episode$new(path)
pegboard:::make_heading_table(loop$headings, offset = length(loop$yaml))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.