markdown

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(text string) string

Render converts markdown text to ANSI-styled terminal output.

Types

type StreamingRenderer

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

StreamingRenderer processes markdown text chunk-by-chunk and emits ANSI-styled output as patterns complete.

func NewStreamingRenderer

func NewStreamingRenderer() *StreamingRenderer

NewStreamingRenderer creates a new streaming markdown renderer.

func (*StreamingRenderer) Flush

func (r *StreamingRenderer) Flush() string

Flush returns any remaining buffered content with appropriate styling. Call this after all chunks have been written.

func (*StreamingRenderer) Reset

func (r *StreamingRenderer) Reset()

Reset clears all state for reuse.

func (*StreamingRenderer) Write

func (r *StreamingRenderer) Write(chunk string) string

Write processes a chunk of text and returns rendered output. Call Flush() after all chunks to get any remaining buffered content.

Jump to

Keyboard shortcuts

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