#markdown

hoedown

bindings for the Hoedown markdown processor

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

#126 in #markdown

Download history 133/week @ 2021-09-27 101/week @ 2021-10-04 140/week @ 2021-10-11 99/week @ 2021-10-18 97/week @ 2021-10-25 130/week @ 2021-11-01 144/week @ 2021-11-08 92/week @ 2021-11-15 78/week @ 2021-11-22 199/week @ 2021-11-29 164/week @ 2021-12-06 151/week @ 2021-12-13 54/week @ 2021-12-20 92/week @ 2021-12-27 91/week @ 2022-01-03 187/week @ 2022-01-10

441 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

TDdX