Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ANSI ¶
type ANSI struct {
// contains filtered or unexported fields
}
ANSI is the terminal markdown renderer implementation.
type Config ¶
type Config struct {
Palette Palette
// Width is the caller-visible width before any wrap offset is applied.
Width int
// WrapOffset preserves legacy call-site behaviour where some renderers use a
// slightly smaller wrap width than the viewport width.
WrapOffset int
NormalizeTabs bool
NormalizeNewlines bool
TrimSpace bool
EnsureTrailingLine bool
}
Config controls how markdown is rendered for a specific caller.
type Palette ¶
type Palette struct {
Primary string
Secondary string
Success string
Warning string
Muted string
Text string
}
Palette describes the semantic colours used by the terminal renderer.
type Renderer ¶
Renderer renders complete markdown content for a terminal target. Implementations must treat source as read-only and must not retain it after Render returns; streaming callers may pass slices backed by reusable buffers. Render returns caller-owned bytes that the implementation must not mutate or reuse, including during later Render calls.
Click to show internal directories.
Click to hide internal directories.