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.
hoedown]: https://github.com/hoedown/hoedown
`` rust use hoedown::{Markdown, Render}; use hoedown::renderer::html::{self, Html}; et doc = Markdown::new("some emphasis required"); et mut html = Html::new(html::Flags::empty(), 0);
ssert_eq!( html.render(&doc).to_str().unwrap(), "some emphasis required\n"); ``