markdown

package
v0.12.21 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HighlightDiff

func HighlightDiff(diff string) string

func Render

func Render(text string) string

Render converts markdown to ANSI-styled terminal text. An unterminated trailing code fence (mid-stream) is still highlighted live.

func Sanitize added in v0.11.0

func Sanitize(s string) string

Sanitize is the exported form used by cell formatters for tool output.

func WrapLine

func WrapLine(line string, width int) []string

Types

type ANSIRenderer added in v0.11.0

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

func NewANSIRenderer added in v0.11.0

func NewANSIRenderer() *ANSIRenderer

func (*ANSIRenderer) RegisterFuncs added in v0.11.0

func (r *ANSIRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

Jump to

Keyboard shortcuts

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