Module markdown

Module markdown 

Source
Expand description

Markdown rendering utilities. Markdown parsing utilities for TUI rendering

Uses pulldown-cmark for CommonMark parsing.

Enums§

ContentSegment
Content segment type for splitting text and tables

Functions§

detect_heading_level
Check if text starts with a heading marker using pulldown-cmark
heading_style
Get style for heading level
parse_to_spans
Parse markdown text into styled ratatui spans
parse_to_styled_words
Parse markdown and split into words with their styles
render_markdown_with_prefix
Render markdown content with diamond prefix and manual wrapping
split_content_segments
Split content into text, table, and code block segments
wrap_with_prefix
Wrap text with a first-line prefix and continuation prefix