#markdown #md #html #parser

bin+lib markdown

Native Rust library for parsing Markdown and (outputting HTML)

5 releases (3 breaking)

Uses old Rust 2015

0.3.0 Aug 23, 2020
0.2.0 Dec 31, 2016
0.1.1 Oct 1, 2015
0.1.0 Sep 19, 2015
0.0.1 Jan 25, 2015

#100 in Parser implementations

Download history 12/week @ 2020-06-06 13/week @ 2020-06-13 14/week @ 2020-06-20 15/week @ 2020-06-27 10/week @ 2020-07-04 11/week @ 2020-07-11 15/week @ 2020-07-18 8/week @ 2020-07-25 2/week @ 2020-08-01 81/week @ 2020-08-08 136/week @ 2020-08-15 73/week @ 2020-08-22 75/week @ 2020-08-29 84/week @ 2020-09-05 65/week @ 2020-09-12 57/week @ 2020-09-19

205 downloads per month
Used in 5 crates

MIT/Apache

55KB
1.5K SLoC

markdown.rs

A simple native Rust library for parsing Markdown and (outputting HTML).

Usage

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>")

TODO

  • Inline HTML
  • Backslash Escapes
  • Automatic Links
  • Reference-Style Links
  • List wrapping
  • HTML Entities
  • Obscure Emails

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~1.5MB
~40K SLoC