markdown

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 3 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 renders a lightweight markdown subset for the TUI.

func NewRenderer

func NewRenderer(width int) *Renderer

NewRenderer creates a markdown renderer at the given width.

func (*Renderer) RenderFinal

func (r *Renderer) RenderFinal(content string) string

RenderFinal renders a terminal-friendly markdown subset.

func (*Renderer) SetWidth

func (r *Renderer) SetWidth(width int)

SetWidth stores the terminal width for future lightweight formatting.

func (*Renderer) Width

func (r *Renderer) Width() int

Width reports the current renderer width.

Jump to

Keyboard shortcuts

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