15 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.5.1 Nov 26, 2019
0.5.0 Nov 24, 2019
0.4.3 Nov 14, 2019
0.4.1 Jul 2, 2019
0.2.3 May 21, 2019

#58 in Parser implementations

Download history 75/week @ 2019-08-13 186/week @ 2019-08-20 170/week @ 2019-08-27 186/week @ 2019-09-03 147/week @ 2019-09-10 234/week @ 2019-09-17 83/week @ 2019-09-24 129/week @ 2019-10-01 58/week @ 2019-10-08 75/week @ 2019-10-15 182/week @ 2019-10-22 142/week @ 2019-10-29 139/week @ 2019-11-05 265/week @ 2019-11-12 206/week @ 2019-11-19

657 downloads per month
Used in 6 crates (3 directly)

MIT license

68KB
1.5K SLoC

MIT Latest Version docs Chat on Miaou

A simple, non universal purpose, markdown parser.

If you're looking for a Markdown parser, this one is probably not the one you want:

Minimad can be used on its own but is first designed for the termimad lib, which displays static and dynamic markdown snippets on a terminal without mixing the skin with the code. Minimad sports a line-oriented flat structure (i.e. not a tree) which might not suit your needs.

If you still think you might use Minimad directly (not through Temimad), you may contact me on Miaou for advice.

Usage

[dependencies]
minimad = "0.5"
assert_eq!(
    Line::from("## a header with some **bold**!"),
    Line::new_header(
        2,
        vec![
            Compound::raw_str("a header with some "),
            Compound::raw_str("bold").bold(),
            Compound::raw_str("!"),
        ]
    )
);

assert_eq!(
    Line::from("Hello ~~wolrd~~ **World**. *Code*: `sqrt(π/2)`"),
    Line::new_paragraph(vec![
	Compound::raw_str("Hello "),
	Compound::raw_str("wolrd").strikeout(),
	Compound::raw_str(" "),
	Compound::raw_str("World").bold(),
	Compound::raw_str(". "),
	Compound::raw_str("Code").italic(),
	Compound::raw_str(": "),
	Compound::raw_str("sqrt(π/2)").code(),
    ])
);

Dependencies