Skip to main content

render_markdown

Function render_markdown 

Source
pub fn render_markdown(
    markdown: &str,
    max_width: Option<usize>,
) -> Text<'static>
Expand description

Render markdown string to ratatui Text with default styling

ยงArguments

  • markdown - The markdown string to render
  • max_width - Optional maximum width for full-width backgrounds (defaults to 120)