Documentation
¶
Overview ¶
Package markup provides Rich-style markup parsing for styled terminal text.
Markup syntax:
- [bold]text[/bold] or [bold]text[/] - apply bold style
- [red]text[/] - apply color
- [bold red on white]text[/] - combine styles
- [#ff0000]text[/] - hex colors
- [link=https://example.com]click here[/link] - hyperlinks
- \\[ - escaped bracket (renders as literal [)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VisibleLength ¶
VisibleLength returns the terminal cell width of the visible text (without markup tags). This accounts for double-width characters (CJK), zero-width characters, etc.
Types ¶
Click to show internal directories.
Click to hide internal directories.