md4r: Markdown Parser Implemented using the 'MD4C' Library

Provides an R wrapper for the 'MD4C' (Markdown for 'C') library. Functions exist for parsing markdown ('CommonMark' compliant) along with support for other common markdown extensions (e.g. 'GitHub' flavored markdown, 'LaTeX' equation support, etc.). The package also provides a number of higher level functions for exploring and manipulating markdown abstract syntax trees as well as translating and displaying the documents.

Version: 0.5.3.0
Depends: R (≥ 4.1.0)
Imports: checkmate, cli, glue, purrr, Rcpp, stringr, textutils, tibble
LinkingTo: Rcpp
Suggests: diffmatchpatch, rlang, styler, testthat (≥ 3.0.0), withr
Published: 2026-05-07
DOI: 10.32614/CRAN.package.md4r
Author: Colin Rundel [aut, cre], Martin Mitáš [cph] (md4c author: md4c.c, md4c.h, specs/md4c/), RStudio, PBC [cph] (httpuv_url_tools.cpp), John MacFarlane [cph] (specs/gfm/spec.txt, specs/md4c/spec.txt)
Maintainer: Colin Rundel <rundel at gmail.com>
BugReports: https://github.com/rundel/md4r/issues
License: MIT + file LICENSE
Copyright: John MacFarlane, RStudio, PBC; Martin Mitáš, Colin Rundel
URL: https://rundel.github.io/md4r/, https://github.com/rundel/md4r
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: md4r results

Documentation:

Reference manual: md4r.html , md4r.pdf

Downloads:

Package source: md4r_0.5.3.0.tar.gz
Windows binaries: r-devel: md4r_0.5.2.0.zip, r-release: md4r_0.5.2.0.zip, r-oldrel: md4r_0.5.2.0.zip
macOS binaries: r-release (arm64): md4r_0.5.3.0.tgz, r-oldrel (arm64): md4r_0.5.3.0.tgz, r-release (x86_64): md4r_0.5.3.0.tgz, r-oldrel (x86_64): md4r_0.5.3.0.tgz
Old sources: md4r archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=md4r to link to this page.