Rust

Markdown libraries for Rust — a fast pull parser and a GFM-compatible renderer. Back to the overview.

pulldown-cmark

A fast, safe pull parser; the de-facto standard across the Rust ecosystem.

CommonMarkfast
use pulldown_cmark::{Parser, html};

let parser = Parser::new("# Hello *world*");
let mut out = String::new();
html::push_html(&mut out, parser);

View pulldown-cmark →

comrak

A CommonMark- and GFM-compatible parser and formatter, ported from cmark-gfm.

CommonMarkGFM
use comrak::{markdown_to_html, Options};

let html = markdown_to_html("# Hello *world*", &Options::default());

View comrak →