No runtime dependencies
A compact parsing pipeline that stays easy to understand, test, and extend.
A compact Rust Markdown parser
marked-rs is a dependency-free Markdown-to-HTML parser with a small core, opt-in GFM support, and native, Node.js, and WebAssembly surfaces.
$ printf '# Hello, Rust!\n\n**Fast** Markdown.\n' | cargo run --quiet
<h1>Hello, Rust!</h1>
<p><strong>Fast</strong> Markdown.</p>
Focused by design
A compact parsing pipeline that stays easy to understand, test, and extend.
Source text and generated attributes are escaped before they reach the renderer.
Use the Rust library and CLI today, or enable Node.js and WebAssembly bindings.
Quick start
Render Markdown directly, or inspect the document AST before adding a custom renderer.
let html = marked_rs::parse(
"# Hello\n\nA **small** parser."
);
// <h1>Hello</h1> …
Try it in your browser
Edit the Markdown and see the HTML produced by marked-rs running through WebAssembly.
Representative benchmark
Median throughput on a 1.27 MiB mixed-feature Markdown corpus.
Ready when you are