Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Renderer ¶
func Renderer(wrap int) *glamour.TermRenderer
Renderer returns a cached glamour.TermRenderer for the given wrap width.
func StyleConfig ¶
func StyleConfig() ansi.StyleConfig
StyleConfig returns the glamour style config adapted for dark/light terminal. Uses COLORFGBG environment variable instead of termenv.HasDarkBackground() to avoid blocking terminal queries (OSC 11) that deadlock the Bubble Tea event loop on the first render. See: termenv.HasDarkBackground → BackgroundColor → termStatusReport → waitForData blocks forever because Bubble Tea's input reader consumes the response before termenv can read it.
func StyleConfigForDarkMode ¶
func StyleConfigForDarkMode(dark bool) ansi.StyleConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.