FindSoftware

Comrak

CommonMark and GitHub Flavored Markdown compatible parser and renderer written in Rust.

Comrak is a parser and renderer for CommonMark and GitHub Flavored Markdown, written in Rust. It runs as a command-line program that converts files to HTML, XML or CommonMark, and as a Rust library that parses a document into a tree, lets a program change the tree, and formats it again. A Rust project adds the library as a Cargo dependency.

None of Comrak’s own extensions, such as footnotes, math and alerts, are enabled until a parse turns them on. Other languages bind to the library, among them the Ruby gem Commonmarker. The project is developed by a community of contributors.

Worth knowing

Raw HTML and potentially dangerous links are removed by default. The unsafe option allows them, and the README recommends a sanitisation library configured for the application when that option is set.

The Disallowed Raw HTML extension, a GitHub Flavored Markdown feature, has been removed from Comrak, and the README says it should not be used.

Identity

Status
Active
Maintainer
Comrak contributors3
Maintained by
Community
First release
20175

Rendering and deploy

Install with
cargo1

Releases

Current major version
Pre-1.06
Last release
2026-10-266

Adoption

GitHub stars
1,7352
Contributors
947
Dependent repositories
5418
Dependent packages
1168

Why these figures do not compare

Sources

  1. 2026-11-04: links, Written in, Runtime, Install with, License
    comrak.ee/
  2. 2026-11-04: links, GitHub stars
    api.github.com/repos/kivikakk/comrak
  3. 2026-11-04: Maintainer
    github.com/kivikakk/comrak/blob/v0.59.0/COPYING
  4. 2026-11-04: Categories
    github.com/kivikakk/comrak/blob/main/README.md
  5. 2026-11-04: First release
    api.github.com/repos/kivikakk/comrak/commits/0.1.0
  6. 2026-11-04: Current major version, Last release
    api.github.com/repos/kivikakk/comrak/releases
  7. 2026-11-04: Contributors
    api.github.com/repos/kivikakk/comrak/contributors?per_page=1
  8. 2026-11-04: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/crates.io/packages/comrak

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