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
806 downloads per month
Used in 13 crates
(7 directly)
245KB
7K
SLoC
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");