Markdown rendering for R



Markdown is a plain-text formatting syntax that can be converted to HTML or other formats. This package provides wrappers based on the commonmark package.

The main function mark() renders Markdown to various output formats supported by commonmark; mark_html() is a wrapper function to render Markdown to HTML, and mark_latex() is a wrapper function for LaTeX output. Options controlling output and supported Markdown extensions can be optionally specified.

To learn more about Markdown syntax see:

This package is referred to as R Markdown v1 when combined with knitr. The primary output format is HTML. In 2014, we introduced R Markdown v2, which is based on Pandoc and knitr, and supports many more types of output formats. Please see for details.


The markdown package is licensed under the GPLv2.