render

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 4 Imported by: 0

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

func (r *Renderer) IsTerminal() bool

IsTerminal reports whether stdout is a terminal.

func (*Renderer) RenderBlock

func (r *Renderer) RenderBlock(markdown string) string

RenderBlock renders a complete markdown string. Falls back to raw text if glamour is unavailable or rendering fails.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL