markdown

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAssistantMessage added in v0.3.2

func FormatAssistantMessage(content string, width int) string

func FormatCompaction added in v0.3.2

func FormatCompaction(fromTokens, toTokens int64) string

func FormatCompactionProgress added in v0.3.2

func FormatCompactionProgress(fromTokens int64) string

func FormatError added in v0.3.2

func FormatError(title string, message string, width int) string

func FormatPrompt added in v0.3.2

func FormatPrompt(title string, message string, width int) string

func FormatStatus added in v0.3.2

func FormatStatus(message string, width int) string

func FormatToolCall added in v0.3.2

func FormatToolCall(name string, hint string, output string, width int) string

func FormatToolProgress added in v0.3.2

func FormatToolProgress(name string, hint string, width int) string

func FormatUserMessage added in v0.3.2

func FormatUserMessage(content string, width int) string

func HighlightDiff added in v0.3.2

func HighlightDiff(diff string) string

HighlightDiff applies syntax highlighting to a unified diff string using theme-consistent colors for additions/deletions

func Render

func Render(text string) string

Types

type TviewRenderer added in v0.3.2

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

TviewRenderer renders goldmark AST to tview dynamic color format

func NewTviewRenderer added in v0.3.2

func NewTviewRenderer() *TviewRenderer

NewTviewRenderer creates a new tview renderer

func (*TviewRenderer) RegisterFuncs added in v0.3.2

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

RegisterFuncs implements renderer.NodeRenderer

Jump to

Keyboard shortcuts

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