Skip to main content

Crate satteri

Crate satteri 

Source
Expand description

satteri: high-level Rust API for the Sätteri markdown/MDX pipeline.

§Quick start

let html = satteri::markdown_to_html("# Hello world");
assert!(html.contains("<h1>Hello world</h1>"));

Functions§

compile_mdx
Compile MDX source directly to JavaScript.
markdown_to_html
Parse Markdown source and render it directly to HTML.