High Performance CommonMark and Github Markdown Rendering in R
Overview
The CommonMark specification https://github.github.com/gfm/ defines a rationalized version of markdown syntax. This package uses the 'cmark' reference implementation for converting markdown text into various formats including html, latex and groff man. In addition it exposes the markdown parse tree in xml format. Also includes opt-in support for GFM extensions including tables, autolinks, and strikethrough text.
- The tagfilter extension for markdown_html now actually works (#15)
- Backport patch to filter illegal control characters in markdown_xml()
- Implement LaTeX footnotes (#32)
From NEWS in the release
Install
Health
ERRORtestsr-release-macos-arm64
Running ‘testthat.R’ [0s/0s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(commonmark)
>
> test_check("commonmark")
Error in loadNamespace(x) : there is no package called 'cli'
Calls: test_check ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted- ERROR12 OK, 1 ERRORNow
- ERROR11 OK, 1 ERROR2026-04-27
- OK14 OK2026-04-24
- ERROR13 OK, 1 ERROR2026-04-16
- OK14 OK2026-03-31
- ERROR13 OK, 1 ERROR2026-03-28
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Earlier advisories (3)Hide earlier advisories (3)
- RSEC-2023-8Denial of Service (DoS) vulnerabilities0.2 to 1.9.1, fixed in 1.9.2, 2023-10-06, CVE-2023-22483 Low 3.5, CVE-2023-22484 Low 3.5, CVE-2023-22485 Medium 5.3, CVE-2023-22486 Low 3.5, CVE-2023-24824 Medium 5.3, CVE-2023-26485 Medium 5.3, CVE-2023-37463 Medium 6.4
- RSEC-2023-7Denial of Service (DoS) and Arbitrary Code Execution (ACE) vulnerabilities0.2 to 1.7, fixed in 1.8, 2023-10-06, CVE-2022-24724 High 8.8, CVE-2022-39209 High 7.5
- RSEC-2023-6Denial of Service (DoS) vulnerability0.2 to 1.7, fixed in 1.8, 2023-10-06, CVE-2020-5238 Medium 6.5
Documentation
- Help pages
- 2
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 82%
- Median days to close, 50 most recently updated closed issues
- 125
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/r-lib/commonmark on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing commonmark adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.0.0Latest
- RR 4.5.0 released · 2025-04-11
- 1.9.52025-03-17 · diff ↗
- 1.9.42025-03-17 · diff ↗
- 1.9.22024-10-04 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.9.1◆2024-01-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.9.0◆2023-03-17 · diff ↗
- 1.8.1◆2022-10-14 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.8.0◆2022-03-09 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
Show 18 earlier eventsHide 18 earlier events
- 1.7◆2018-12-01 · diff ↗
- 1.6◆2018-09-30 · diff ↗
- 1.5◆2018-04-28 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.4◆
- RR 3.4.0 released · 2017-04-21
- 1.2◆2017-03-01 · diff ↗
- 1.1◆2016-12-13 · diff ↗
- 1.0◆
- 0.9◆2016-07-23 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.8◆2016-03-30 · diff ↗
- 0.7◆2016-01-20 · diff ↗
- 0.6◆2016-01-03 · diff ↗
- 0.5◆
- 0.4◆2015-05-30 · diff ↗
- 0.2◆2015-05-28
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-05-28
- Total releases
- 22 / 11 yrs
- License
- BSD_2_clause + file LICENSE OSI
- Download size
- 144 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("commonmark")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.