Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.