Documentation
¶
Overview ¶
Package markdown wraps Glamour for cached markdown-to-ANSI rendering with width-based revalidation, falling back to plain text wrapping for narrow terminals.
Index ¶
Constants ¶
View Source
const ( // MinWidthForMarkdown is the minimum terminal width for markdown rendering. // Below this, falls back to plain text wrapping. MinWidthForMarkdown = 30 // MaxCacheEntries is the maximum number of cached renders before eviction. MaxCacheEntries = 100 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer wraps Glamour for markdown rendering with caching.
func NewRenderer ¶
NewRenderer creates a new markdown renderer instance.
Click to show internal directories.
Click to hide internal directories.