4 releases
Uses old Rust 2015
0.1.2 | Feb 21, 2019 |
---|---|
0.1.1 | Sep 3, 2018 |
0.1.0 | Sep 3, 2018 |
0.0.1 | Sep 3, 2018 |
#12 in #compiling
25KB
567 lines
mossy
A toy library for parsing and compiling Markdown.
Usage
Add this to your Cargo.toml
:
[dependencies]
mossy = "0.1.2"
and this to your crate root:
extern crate mossy;
Example
extern crate mossy;
use mossy::App;
let md_text = r"
mossy
================
A toy library for parsing Markdown.
## Specification
It's based [CommonMark].
LICENSE
----------------
MIT
".to_string();
let html: String = App::exec(md_text);
Specification
It's based CommonMark.
Supported Markdown syntaxes
- Heading
- List
- Code block
- Link label
and some inline-elements.
LICENSE
MIT
lib.rs
:
mossy
A toy library for parsing and compiling Markdown.
Based specification is CommonMark.
Usage
extern crate mossy;
use mossy::App;
let md_text = r"
mossy
================
A toy library for parsing Markdown.
It's based [CommonMark].
LICENSE
----------------
MIT
[CommonMark]: https://spec.commonmark.org/0.28/
".to_string();
let html: String = App::exec(md_text);
Dependencies
~2–3MB
~54K SLoC