Theme for ANSI terminal rendering.
interface
markdown.AnsiTheme
interface AnsiTheme
- colors?: boolean
Emit ANSI color + styling escape sequences. When
false, the renderer falls back to plain ASCII chrome (no box drawing, no emoji, no escape codes). - columns?: number
Line width used for word-wrapping paragraphs and headings and for the horizontal rule. Pass
0to disable wrapping. - hyperlinks?: boolean
Emit OSC 8 hyperlinks (clickable links in modern terminals). When
false, links render astext (url). - kittyGraphics?: boolean
Inline images using the Kitty Graphics Protocol when the
srcresolves to a local file on disk. Falls through to the text alt for remote URLs. Supported by Kitty, WezTerm, and Ghostty. - light?: boolean
True when the terminal background is light. Affects the color palette chosen for inline code backgrounds. Defaults to detecting from the
COLORFGBGenvironment variable.