Documentation
¶
Overview ¶
Package markdown provides a high-performance markdown renderer for terminal output. This is a custom implementation optimized for speed, replacing glamour for TUI rendering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlamourRenderer ¶ added in v1.8.2
func NewGlamourRenderer(width int) *glamour.TermRenderer
NewGlamourRenderer creates a markdown renderer using glamour. This is kept for compatibility and testing purposes.
func ResetStyles ¶ added in v1.20.0
func ResetStyles()
ResetStyles resets the cached markdown styles so they will be rebuilt on next use. Call this when the theme changes to pick up new colors.
Types ¶
type FastRenderer ¶ added in v1.8.2
type FastRenderer struct {
// contains filtered or unexported fields
}
FastRenderer is a high-performance markdown renderer optimized for terminal output. It directly parses and renders markdown without building an intermediate AST.
func NewFastRenderer ¶ added in v1.8.2
func NewFastRenderer(width int) *FastRenderer
NewFastRenderer creates a new fast markdown renderer with the given width.