Skip to content

commonmark

2.0.0Package record

High Performance CommonMark and Github Markdown Rendering in R

22packages dependsuggested by 18
8.6Mdownloads / year
10.9%test coverage
12/13flavors OK

Overview

About

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.

Changes in 2.0.0
  • 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

CRAN checks
1ERROR12OK
Check messages
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

CRAN check page ↗

Slowest check: 2.4 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories
Earlier advisories (3)Hide earlier advisories (3)
  • RSEC-2023-8Denial of Service (DoS) vulnerabilities
    0.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) vulnerabilities
    0.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) vulnerability
    0.2 to 1.7, fixed in 1.8, 2023-10-06, CVE-2020-5238 Medium 6.5

Documentation

In release 2.0.0
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structured · mentions 2.0.0Citation fileNoWebsiteYes · pkgdown
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

8.6M
CRAN downloads in the past year
Rank #97 · ~23.6K/day · ~718.9K/mo
Daily download trend is not available in this view yet.
584.2K30 days
1.9M90 days
8.6M1 year
Compare downloads with other packages →
Also on166.5K r2u333 autocran590.2K conda_forge3.9K c2d4u

Repository

102Stars
12Forks
2Open issues
2Open PRs
17Releases
172Commits
8Commit identities
markdowncmarkgfmcmark-gfm
172 commits · Last activity 2025-07-07 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-09-08 · 982026-08-22 · 102
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing commonmark adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none

People & History

People (2)
Author, Maintainer since 0.2 (2015)
Copyright holder
Author of cmark
Releases (22)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.0Latest
    record
    2025-07-07 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.9.5
    record
    2025-03-17 · diff ↗
  • 1.9.4
    record
    2025-03-17 · diff ↗
  • 1.9.2
    record
    2024-10-04 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.9.1◆
    record
    2024-01-30 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.9.0◆
    record
    2023-03-17 · diff ↗
  • 1.8.1◆
    record
    2022-10-14 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.8.0◆
    record
    2022-03-09 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
Show 18 earlier eventsHide 18 earlier events

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")
Ooms, J., & John MacFarlane. (2025). commonmark: High Performance CommonMark and Github Markdown Rendering in R (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for commonmark version 2.0.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy