Parses text in Markdown format and returns fpar and as_paragraph command strings to be used with officer
md_to_officer( str, default_format = list(color = "black", font.size = 12, bold = FALSE, italic = FALSE, underlined = FALSE, font.family = "Cambria (Body)", vertical.align = "baseline", shading.color = "transparent") )
string containing Markdown can contain the following elements:
list containing the default format for elements not defined with markdown default values.
list with parsed paragraph elements ubiquity system object with the
content added to the body, each paragraph can be found in a numbered list
pgraph_2, etc) each with the following
locs: Dataframe showing the locations of markdown elements in the current paragraph
pele: These are the individual parsed paragraph elements
ftext_cmd: String containing the ftext commands.
fpar_cmd: String containing the fpar commands that can be run using
eval to return the output of
fpar. For example:
as_paragraph_cmd: String containing the as_paragraph_cmd that can be run using