ratkit 0.2.15

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Functions module.

use ratatui::style::Style;
use ratatui::text::Text;

use super::elements::MarkdownElement;

pub fn render_markdown(content: &str) -> Text<'_> {
    Text::raw(content)
}

pub fn render_markdown_with_style(content: &str, style: Style) -> Text<'_> {
    Text::styled(content, style)
}