4 releases (2 breaking)
|0.2.0||Dec 31, 2016|
|0.1.1||Oct 1, 2015|
|0.1.0||Sep 19, 2015|
|0.0.1||Jan 25, 2015|
#158 in Parser implementations
196 downloads per month
Used in 4 crates
A simple native Rust library for parsing Markdown and (outputting HTML).
To include markdown in your project add the following to your Cargo.toml:
[dependencies] markdown = "0.2"
Now you can use the crate in your code with
extern crate markdown;
There is no full documentation right now, the only function exported by the library is
to_html, which takes a markdown
&str and converts it to an owned
String containing html.
let html : String = markdown::to_html("__I am markdown__"); assert_eq!(&html, "<strong>I am markdown</strong>")
- Inline HTML
- Backslash Escapes
- Automatic Links
- Reference-Style Links
- List wrapping
- HTML Entities
- Obscure Emails
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.