FindSoftware

markdown-rs

CommonMark-compliant Markdown parser for Rust that builds a syntax tree and compiles Markdown to HTML, with GFM, MDX and math extensions.

markdown-rs parses Markdown into events and then compiles them to HTML or to a syntax tree in the mdast format, with a position for each node. A Rust program calls to_html for a string of Markdown, or to_html_with_options with an Options value to switch on GFM, MDX, frontmatter and math. Its parser is a state machine built on alloc without the standard library, and it accounts for every byte of the input.

The README names micromark, a JavaScript Markdown parser, as a sibling project, and mdxjs-rs wraps this crate to compile MDX to JavaScript.

Worth knowing

HTML output is safe by default: dangerous HTML and protocols are encoded or dropped unless allow_dangerous_html or allow_dangerous_protocol is turned on. MDX syntax errors come back as an error value from to_html_with_options, and the README advises capping the size of untrusted input before parsing it.

Identity

Status
Active
Maintainer
Titus Wormer3
Maintained by
Individual3
First release
20225

Rendering and deploy

Install with
cargo add2

Releases

Current major version
14
Last release
2025-04-234

Adoption

GitHub stars
1,5951
Contributors
166
Dependent repositories
6977
Dependent packages
867

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License model, GitHub stars
    github.com/wooorm/markdown-rs
  2. 2026-11-16: links, Categories, Runtime, Install with
    github.com/wooorm/markdown-rs/blob/main/readme.md
  3. 2026-11-16: Maintainer, Maintained by, License
    github.com/wooorm/markdown-rs/blob/main/license
  4. 2026-11-16: Current major version, Last release
    github.com/wooorm/markdown-rs/releases/tag/1.0.0
  5. 2026-11-16: First release
    github.com/wooorm/markdown-rs/releases/tag/1.0.0-alpha.1
  6. 2026-11-16: Contributors
    api.github.com/repos/wooorm/markdown-rs/contributors?per_page=1
  7. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/crates.io/packages/markdown

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