Convert standard markdown file to govspeak
convert_rmd.Rd
Convert markdown file to Whitehall Publisher (GOV.UK) govspeak markdown format
Arguments
- 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.