Inserts YAML header for floating toc if toc is TRUE.
insert_yaml(toc, header, text, lan, theme = "default", highlight = "null")TOC status, FALSE (the default) or TRUE.
Metadata items wrapped with 'tags$header()'.
Raw text required for Rmarkdown body.
lang attribute value.
Text styling to apply. Current valid value is "default" only. All other themes present accessibility errors on testing.
Currently only "null" is a valid, due to accessibility errors found in all built-in highlight options.
An assembled html output page containing the required toc code.