[−][src]Crate termimad
Macros
mad_bg | |
mad_colors | |
mad_fg |
Structs
Area | represents a part of a screen |
FmtComposite | wrap a Minimad Composite, which is a list of Compounds, which are strings with an homogeneous style |
FmtInline | a directly printable markdown snippet, complete with the reference to a skin so that it can implement the Display trait. Use this when you don't have a text but just part of a line |
FmtText | a formatted text, implementing Display |
MadSkin | A skin defining how a parsed mardkown appears on the terminal (fg and bg colors, bold, italic, underline, etc.) |
MadView | A MadView is like a textview but it owns everything, from the source markdown to the area and the skin, which often makes it more convenient for dynamic texts. It's also resizeable. |
TextView | a scrollable text, in a specific area. |
Enums
FmtLine | A line in a text. This structure should normally not be used outside of the lib. |
Functions
inline | return a formatted line, which implements Display This uses the default skin. Don't use if you expect your markdown to be several lines. |
print_inline | |
print_text | |
term_text | return a formatted text, which implements Display This uses the default skin and the terminal's width |
text | return a formatted text, which implements Display
This uses the default skin and doesn't wrap the lines
at all. Most often you'll prefer to use |