A simple native Rust library for parsing Markdown and (outputting HTML).
To include markdown in your project add the following to your Cargo.toml:
```toml [dependencies] markdown = "0.1"
```
Now you can use the crate in your code with
rust
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.
```rust let html : String = markdown::to_html("I am markdown");
assert_eq!(&html, "I am markdown") ```