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

#150 in #markdown

Download history 249/week @ 2022-04-20 471/week @ 2022-04-27 261/week @ 2022-05-04 498/week @ 2022-05-11 270/week @ 2022-05-18 264/week @ 2022-05-25 327/week @ 2022-06-01 205/week @ 2022-06-08 182/week @ 2022-06-15 169/week @ 2022-06-22 150/week @ 2022-06-29 140/week @ 2022-07-06 233/week @ 2022-07-13 143/week @ 2022-07-20 175/week @ 2022-07-27 239/week @ 2022-08-03

806 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 Perl 146 SLoC // 0.1% comments Python 76 SLoC // 0.1% 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.

# use hoedown::{Markdown, Render};
# use hoedown::renderer::html::{self, Html};
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