A very simple, non universal purpose, markdown parser.
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.
toml
[dependencies]
minimad = "0.2"
```rust asserteq!( Line::from("## a header with some bold!"), Line { style: LineStyle::Header(2), compounds: vec![ Compound::rawstr("a header with some "), Compound::rawstr("bold").bold(), Compound::rawstr("!"), ] } );
asserteq!(
Line::from("*Italic then bold and italic and some *code*
and italic*"),
Line {
style: LineStyle::Normal,
compounds: vec![
Compound::rawstr("Italic then ").italic(),
Compound::rawstr("bold and italic ").bold().italic(),
Compound::rawstr("and some code").bold().italic().code(),
Compound::raw_str(" and italic").italic(),
]
}
);
```