Expand description
Markdown parsing and rendering for terminal display
This module provides markdown-to-styled-text conversion for popups, hover documentation, and other UI elements. It also provides word wrapping utilities for styled text.
Structs§
- Styled
Line - A line of styled spans for markdown rendering
- Styled
Span - A styled span for markdown rendering
Functions§
- parse_
markdown - Parse markdown text into styled lines for terminal rendering
- wrap_
styled_ lines - Word-wrap styled lines to fit within a given width. Breaks at word boundaries (spaces) when possible, preserving styling. Continuation lines are indented to match the original line’s leading whitespace.
- wrap_
text_ line - Word-wrap a single line of text to fit within a given width. Breaks at word boundaries (spaces) when possible. Falls back to character-based breaking for words longer than max_width. Continuation lines are indented to match the original line’s leading whitespace.
- wrap_
text_ lines - Word-wrap a vector of text lines to fit within a given width.