md_to_oo {onbrand}R Documentation

Parse Markdown into Officer as_paragraph Result

Description

Used to take small markdown chunks and return the as_paragraph results. This function will take the markdown specified in str, calls md_to_officer, evals the as_paragraph field from the first paragraph returned, evals that result and returns the object from the as_paragraph command.

Usage

md_to_oo(strs, default_format = NULL)

Arguments

strs

vector of strings containing Markdown can contain the following elements:

default_format

list containing the default format for elements not defined with markdown default values (format the same as md_to_officer, default is NULL)

Value

list with the following elements

Examples

res = md_to_oo("Be **bold**")

[Package onbrand version 1.0.5 Index]