Expand description
Markdown → ratatui Text renderer.
Converts a markdown string to a ratatui::text::Text<'static> using
pulldown-cmark. Designed for rendering agent output inside the dashboard’s
content panes where only Paragraph + Text are available (no nested widgets).
Feature coverage:
- Headings H1–H6 (bold + accent colour, H1 gets an underline rule)
- Paragraphs with soft/hard breaks
- Bullet and ordered lists (nested up to depth 3)
- Blockquotes (dim, “│ “ prefix)
- Inline
code, bold, italic,strikethrough, links (underlined) - Fenced code blocks (tinted, language tag in title line)
mermaidfenced blocks → styled fallback box with a hint to install mmdc- Horizontal rules (dim dashes)
Plain text that contains no markdown degrades cleanly - it just renders as white text.
Functions§
- markdown_
to_ text - Convert a markdown string to ratatui
Textfor rendering in aParagraph.