Skip to content

md4r

Markdown Parser Implemented using the 'MD4C' Library

v0.5.3.0 · May 7, 2026 · MIT + file LICENSE

Description

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.

Downloads

CRAN

263

Last 30 days

18590th

735

Last 90 days

2.8K

Last year

Trend: -7.4% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

122

Last 90 days

416

Last year

Trend: -50% (30d vs prior 30d)

autoCRAN

1

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/md4r.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

48,490

Files

69

Compiled share

14.7%

Has compiled src

Yes

Language breakdown

R 2,127 (4.4%)C/C++/src 7,147 (14.7%)Tests 38,841 (80.1%)Docs 375 (0.8%)

API

Exported functions

41

Internal functions

114

Recent export changes

v0.5.3.0+34 md_block_code, md_block_doc, md_block_h +31 more
v0.5.2.0+7 flags_available, flags_describe, flags_used +4 more

Testing & CI

Has tests

Yes

Test-to-code ratio

18.26

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-02-05

Latest release

2026-05-07

Avg cadence

822 days

Cold removal rate

Dep drift

0

LOC over versions

v0.5.2.0: 9,513 LOCv0.5.3.0: 48,490 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies checkmate cli glue purrr Rcpp stringr textutils tibble md4r

Version History

2 tracked
updated 0.5.3.0 ← 0.5.2.0 diff May 7, 2026
new 0.5.2.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Feb 5, 2024. Releases before tracking aren’t shown.