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.

Try the markdown package in your browser

Any scripts or data that you put into this service are public.

markdown documentation built on Nov. 16, 2022, 5:05 p.m.