FindSoftware

commonmark.js

JavaScript parser and renderer for CommonMark that turns Markdown into a syntax tree and renders it to HTML or XML.

commonmark.js is the JavaScript reference implementation of CommonMark, a specified form of Markdown. It parses a document into a syntax tree that code can inspect or change, and renders the tree to HTML or to an XML representation. The package is installed from npm, and a single-file distribution is available for client-side use.

Worth knowing

The library does not sanitize link attributes or raw HTML. For untrusted input, the README recommends its safe option or an HTML sanitizer on the output.

Identity

Status
Active
Maintainer
John MacFarlane2
First release
20143

Rendering and deploy

Install with
npm5

Releases

Current major version
Pre-1.06
Last release
2024-09-197

Adoption

GitHub stars
1,5704
npm downloads a week
1,322,9949
Contributors
488
Dependent repositories
6,70210
Dependent packages
42810

Why these figures do not compare

Sources

  1. 2026-11-04: links, Categories
    github.com/commonmark/commonmark.js
  2. 2026-11-04: Maintainer
    raw.githubusercontent.com/commonmark/commonmark.js/master/LICENSE
  3. 2026-11-04: First release
    registry.npmjs.org/commonmark
  4. 2026-11-04: Written in, GitHub stars
    api.github.com/repos/commonmark/commonmark.js
  5. 2026-11-04: Runtime, Install with
    raw.githubusercontent.com/commonmark/commonmark.js/master/README.md
  6. 2026-11-04: License, Current major version
    registry.npmjs.org/commonmark/latest
  7. 2026-11-04: Last release
    github.com/commonmark/commonmark.js/releases/tag/0.31.2
  8. 2026-11-04: Contributors
    api.github.com/repos/commonmark/commonmark.js/contributors
  9. 2026-11-04: npm downloads a week
    api.npmjs.org/downloads/range/2026-10-26:2026-11-01/commonmark
  10. 2026-11-04: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/commonmark

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON