Reads a markdown file, strips everything above the first --- separator
(header metadata), converts the remaining markdown to HTML, inlines table
styles for Gmail compatibility, and appends the New Graph signature.
Value
A character string of HTML ready for mc_send().
Details
Gmail strips <style> blocks from HTML emails. This function adds inline
styles to <table>, <th>, and <td> elements so tables render correctly.
The markdown file should follow the compost template format:
Everything above and including the --- line is stripped. Everything below
is converted to HTML.
Examples
if (FALSE) { # \dontrun{
html <- mc_md_render("communications/20260222_brandon_cottonwood_draft.md")
cat(html)
} # }
