# cmark

C library and command-line program that parses CommonMark Markdown into a syntax tree and renders it as HTML, man, LaTeX, CommonMark or XML.


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

## Record

### Links

- repository: https://github.com/commonmark/cmark
- docs: https://github.com/commonmark/cmark/tree/master/man
- forum: https://talk.commonmark.org/

### Identity

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

### Kind

- category: library
- hosting: unknown
- language: c
- runtime: unknown
- 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: make install (source)

### License

- licenseModel: open-source
- license: BSD-2-Clause, MIT, CC-BY-SA-4.0

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-02-14

### Adoption

- githubStargazers: 2041
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 98
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/commonmark/cmark (read 2026-11-04)
- maintainer: https://github.com/commonmark/cmark/blob/master/COPYING (read 2026-11-04)
- maintainerType: https://github.com/commonmark/cmark/blob/master/COPYING (read 2026-11-04)
- language: https://api.github.com/repos/commonmark/cmark (read 2026-11-04)
- firstRelease: https://api.github.com/repos/commonmark/cmark/commits/0.6 (read 2026-11-04)
- license: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- license: https://github.com/commonmark/cmark/blob/master/COPYING (read 2026-11-04)
- license: https://github.com/commonmark/cmark/blob/master/COPYING (read 2026-11-04)
- licenseModel: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- installMethod: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- installMethod: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- installMethod: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- installMethod: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- urls: https://github.com/commonmark/cmark/blob/master/README.md (read 2026-11-04)
- currentMajor: https://api.github.com/repos/commonmark/cmark/releases/latest (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/commonmark/cmark/releases/latest (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/commonmark/cmark (read 2026-11-04)
- contributors: https://api.github.com/repos/commonmark/cmark/contributors (read 2026-11-04)

## Notes

cmark is the C reference implementation of CommonMark, the Markdown syntax that has a written specification. It is both a shared library, libcmark, and a command-line program. The library parses CommonMark into an abstract syntax tree, lets a program change the tree, and renders it as HTML, groff man, LaTeX, CommonMark or an XML form of the tree. It has no external dependencies and is built with cmake, or with make, which calls cmake. The [README](https://github.com/commonmark/cmark/blob/master/README.md) names wrapper libraries that let other languages call libcmark, among them Go, Ruby, Python, Lua and PHP.

## Worth knowing

By default the library removes raw HTML and links that use the javascript, vbscript, data or file schemes. The unsafe option turns that off, and the README recommends an HTML sanitizer for that case.

---

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
