Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer applies Glamour markdown formatting when stdout is a terminal.
func New ¶
func New() *Renderer
New creates a Renderer. Glamour is only initialized when stdout is a TTY.
func (*Renderer) IsTerminal ¶
IsTerminal reports whether stdout is a terminal.
func (*Renderer) RenderBlock ¶
RenderBlock renders a complete markdown string. Falls back to raw text if glamour is unavailable or rendering fails.
Click to show internal directories.
Click to hide internal directories.