# commonmark.js

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


Source: https://findsoftware.frbit.cloud/commonmark-js/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- repository: https://github.com/commonmark/commonmark.js

### Identity

- status: active
- maintainer: John MacFarlane
- maintainerType: unknown
- parent: unknown
- firstRelease: 2014
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: BSD-2-Clause

### Releases

- currentMajor: 0
- latestReleaseDate: 2024-09-19

### Adoption

- githubStargazers: 1570
- packagistDownloads: not applicable
- npmWeeklyDownloads: 1322994
- contributors: 48
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 6702
- dependentPackages: 428

### Sources

- urls: https://github.com/commonmark/commonmark.js (read 2026-11-04)
- maintainer: https://raw.githubusercontent.com/commonmark/commonmark.js/master/LICENSE (read 2026-11-04)
- firstRelease: https://registry.npmjs.org/commonmark (read 2026-11-04)
- category: https://github.com/commonmark/commonmark.js (read 2026-11-04)
- language: https://api.github.com/repos/commonmark/commonmark.js (read 2026-11-04)
- runtime: https://raw.githubusercontent.com/commonmark/commonmark.js/master/README.md (read 2026-11-04)
- installMethod: https://raw.githubusercontent.com/commonmark/commonmark.js/master/README.md (read 2026-11-04)
- installMethod: https://raw.githubusercontent.com/commonmark/commonmark.js/master/README.md (read 2026-11-04)
- installMethod: https://raw.githubusercontent.com/commonmark/commonmark.js/master/README.md (read 2026-11-04)
- license: https://registry.npmjs.org/commonmark/latest (read 2026-11-04)
- currentMajor: https://registry.npmjs.org/commonmark/latest (read 2026-11-04)
- latestReleaseDate: https://github.com/commonmark/commonmark.js/releases/tag/0.31.2 (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/commonmark/commonmark.js (read 2026-11-04)
- contributors: https://api.github.com/repos/commonmark/commonmark.js/contributors (read 2026-11-04)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-10-26:2026-11-01/commonmark (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/commonmark (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/commonmark (read 2026-11-04)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
