terminalpage

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DoubleRule = "━"
	SingleRule = "─"
)

Variables

This section is empty.

Functions

func RenderHTML

func RenderHTML(src string, options Options) string

func StripANSI

func StripANSI(src string) string

Types

type Options

type Options struct {
	ANSI        bool
	Palette     string
	ChromaStyle string
}

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func New

func New(options Options) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(src string) string

Jump to

Keyboard shortcuts

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