Crates.io | smoldown |
lib.rs | smoldown |
version | 0.1.0 |
source | src |
created_at | 2024-06-10 00:39:12.86964 |
updated_at | 2024-06-10 00:39:12.86964 |
description | Native Rust library for parsing Markdown |
homepage | |
repository | https://github.com/bend-n/smoldown |
max_upload_size | |
id | 1266693 |
size | 76,122 |
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.3"
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>")
Licensed under either of
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.