FindSoftware

Commonmarker

Ruby gem that wraps the comrak Rust parser to convert CommonMark and GitHub Flavored Markdown to HTML.

Commonmarker is a Ruby gem that converts Markdown to HTML and parses it into a tree a program can walk and change. The gem wraps the comrak Rust library, so a Ruby program calls compiled Rust code through methods such as Commonmarker.to_html. Parsed documents can also be turned back into CommonMark with to_commonmark.

The strikethrough, table, autolink and task list extensions from the GitHub Flavored Markdown specification are on by default, as are shortcodes and a syntax highlighter for fenced code blocks. Setting an extension option to false turns it off, and the syntax highlighter is disabled by setting its plugin to nil.

Worth knowing

The gem’s README states that it can currently only generate HTML. Building the gem from source compiles the Rust extension, and the README’s developer section points to the comrak dependency instructions when that step fails.

Identity

Status
Active
Maintainer
Garen J. Torikian2
Maintained by
Individual
First release
20155

Rendering and deploy

Install with
bundler3

Releases

Current major version
25
Last release
2026-10-165

Adoption

GitHub stars
5661
Contributors
416
Dependent repositories
317,8937
Dependent packages
697

Why these figures do not compare

Sources

  1. 2026-11-04: links, License, GitHub stars
    api.github.com/repos/gjtorikian/commonmarker
  2. 2026-11-04: Maintainer
    github.com/gjtorikian/commonmarker/blob/v2.10.1/LICENSE.txt
  3. 2026-11-04: Written in, Categories, Install with, Built on
    github.com/gjtorikian/commonmarker/blob/main/README.md
  4. 2026-11-04: Runtime, Minimum runtime
    github.com/gjtorikian/commonmarker/blob/v2.10.1/commonmarker.gemspec
  5. 2026-11-04: First release, Current major version, Last release
    api.github.com/repos/gjtorikian/commonmarker/releases
  6. 2026-11-04: Contributors
    api.github.com/repos/gjtorikian/commonmarker/contributors?per_page=1
  7. 2026-11-04: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/commonmarker

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