markdownx

package
v1.3.34 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkdownWidget

type MarkdownWidget struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

MarkdownWidget renders markdown with proper Fyne widgets. Uses VBox layout — no absolute positioning.

Streaming: AppendChunk accumulates text and debounces re-render. Only the last block is rebuilt during streaming.

func NewMarkdownWidget

func NewMarkdownWidget() *MarkdownWidget

func (*MarkdownWidget) AppendChunk

func (w *MarkdownWidget) AppendChunk(chunk string)

AppendChunk appends streaming text with debounced re-render.

func (*MarkdownWidget) Content

func (w *MarkdownWidget) Content() string

Content returns accumulated text.

func (*MarkdownWidget) CreateRenderer

func (w *MarkdownWidget) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a renderer that reports 0 min width so the parent layout controls width. Content wraps to fit whatever width it gets.

func (*MarkdownWidget) Refresh added in v1.3.17

func (w *MarkdownWidget) Refresh()

func (*MarkdownWidget) SetMarkdown

func (w *MarkdownWidget) SetMarkdown(text string)

SetMarkdown replaces content. Must be called on UI thread.

Jump to

Keyboard shortcuts

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