convert_rmd | R Documentation |
Convert markdown file to Whitehall Publisher (GOV.UK) govspeak markdown format
convert_rmd(
path,
remove_blocks = FALSE,
sub_pattern = TRUE,
page_break = "line"
)
path |
string; filename (including path) to *.md file for conversion |
remove_blocks |
bool; decision to remove block elements from *.md file. This includes code blocks and warnings |
sub_pattern |
bool or vector; decision to increase hashed headers by one level in *.md file. TRUE will substitute all, FALSE will substitute none, while a vector of the desired substitution levels allows individual headings to be modified as required. e.g. "#" will modify only first level headers. |
page_break |
string; chooses what page breaks are converted to on Whitehall. If "line", page breaks are replaced with a horizontal rule. If "none" they are replaced with a line break. If "unchanged" they are not removed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.