render

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyHyperlinks(rendered, mdSource string) string

ApplyHyperlinks wraps visible link text and URLs with OSC 8 sequences so supporting terminals open them on click.

func Markdown

func Markdown(md string, width int) (string, error)

Markdown renders markdown for the TUI preview viewport. Glamour's renderer is not safe for concurrent use; the mutex covers the full render.

func SetDarkTheme

func SetDarkTheme(dark bool)

SetDarkTheme switches glamour markdown rendering between dark and light palettes.

func TestRenderer

func TestRenderer() (*glamour.TermRenderer, error)

TestRenderer returns a glamour renderer for tests (width 80).

Types

This section is empty.

Jump to

Keyboard shortcuts

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