Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCatppuccinStyles ¶
func RegisterCatppuccinStyles()
RegisterCatppuccinStyles registers the Catppuccin color themes
Types ¶
type Model ¶
type Model struct {
Content string
Width int
Lines []Line
LineNumbers bool
Style string // Name of the Chroma style to use
ChromaStyle *chroma.Style
DefaultLexer string // Default lexer to use when language is not specified
TerminalTheme string // Terminal theme: "dark" or "light"
}
func (*Model) ParseLines ¶
func (m *Model) ParseLines()
ParseLines parses the content into individual lines with metadata
func (*Model) RenderPreservingAll ¶
RenderPreservingAll renders the markdown content preserving every line
func (*Model) SetCatppuccinTheme ¶
SetCatppuccinTheme sets the Catppuccin theme based on the provided mode mode can be "dark" or "light"
func (*Model) SetLineNumbers ¶
func (*Model) SetTerminalTheme ¶
SetTerminalTheme sets the terminal theme (dark or light)
Click to show internal directories.
Click to hide internal directories.