Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LooksLikeMarkdown ¶
LooksLikeMarkdown reports whether s contains Markdown that benefits from a terminal renderer. Plain prose stays on the text wrapping path so long URLs and ordinary sentences are not reformatted unnecessarily.
func MarkdownStyleWrapWidth ¶
MarkdownStyleWrapWidth keeps Glamour from wrapping at tiny viewport widths while avoiding huge padded intermediate strings. Final viewport wrapping is still handled by WrapANSI.
func TrimANSIBlankLines ¶
TrimANSIBlankLines removes leading and trailing lines that are visually blank after ANSI escape sequences are ignored.
func VisibleWidth ¶
VisibleWidth returns the terminal cell width of s after normalizing tabs. ANSI escape sequences are zero-width.
func WrapANSI ¶
WrapANSI wraps styled text to width cells using Charmbracelet's ANSI-aware wrapper. It preserves escape sequences and accounts for grapheme and CJK widths without maintaining a local ANSI parser.
func WrapPlainText ¶
WrapPlainText wraps raw model text to width cells without applying Markdown or path-specific token handling.
Types ¶
This section is empty.