22 stable releases (6 major)

Uses old Rust 2015

6.0.0 Dec 28, 2016
5.0.0 May 3, 2016
4.0.0 May 3, 2016
3.0.5 Mar 4, 2016
0.0.1 Jan 22, 2015

#1727 in Text processing

Download history 178/week @ 2024-04-03 161/week @ 2024-04-10 147/week @ 2024-04-17 175/week @ 2024-04-24 199/week @ 2024-05-01 149/week @ 2024-05-08 212/week @ 2024-05-15 190/week @ 2024-05-22 178/week @ 2024-05-29 186/week @ 2024-06-05 188/week @ 2024-06-12 171/week @ 2024-06-19 174/week @ 2024-06-26 130/week @ 2024-07-03 174/week @ 2024-07-10 167/week @ 2024-07-17

669 downloads per month
Used in 13 crates (7 directly)

BSD-3-Clause

245KB
7K SLoC

C 5K SLoC // 0.0% comments Rust 2K SLoC // 0.0% comments Python 76 SLoC // 0.1% comments Perl 74 SLoC // 0.5% comments Shell 36 SLoC // 0.1% comments

Crate version Build Status

These are bindings for hoedown, the C library for markdown processing, with the intention of being as idiomatic as possible.


lib.rs:

This crate provides bindings for the hoedown markdown processing library. It has a Markdown type which stores markdown text in a Buffer. The markdown can then be rendered with any renderer that implements the Render trait. The library comes with an Html renderer by default.

let doc = Markdown::new("some _emphasis_ required");
let mut html = Html::new(html::Flags::empty(), 0);

assert_eq!(
    html.render(&doc).to_str().unwrap(),
    "<p>some <em>emphasis</em> required</p>\n");

Dependencies

~195KB