A simple tool to display static or dynamic Markdown snippets in the terminal, with skin isolation.
Based on crossterm so works on most terminals (even on windows).
Note that termimad isn't a Terminal-UI toolkit and doesn't solve non markdown related problems.
toml
[dependencies]
termimad = "0.2"
rust
termimad::print_line("**some** *nested **style*** and `some(code)`");
or
rust
print!("{}", termimad.line("**some** *nested **style*** and `some(code)`"));
Result:
rust
let mut skin = MadSkin::new();
skin.bold = skin.bold.fg(Yellow);
skin.print_line_ln("*Hey* **World!** Here's `some(code)`");
mad_colors!(skin.normal, Magenta, Rgb{r:30, g:30, b:40});
skin.italic.add_attr(Underlined);
println!("and now {}", skin.line("a little *too much* **style!** (and `some(code)` too)"));
Result: