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 the goal isn't to display any markdown text with its various extensions (a terminal isn't really fit for that). The goal is rather to improve the display of texts in a terminal application when we want both the text and the skin to be easily configured.
Usage
[]
= "0.2"
With the default skin:
;
print_line
or
print!;
Result:
With a custom skin:
let mut skin = new;
skin.bold = skin.bold.fg;
skin.print_line_ln;
mad_colors!;
skin.italic.add_attr;
println!;
Result:
Scrollable TextView in a raw terminal:
The whole code for this example is in examples/scrollable.