Versions in this module Expand all Collapse all v0 v0.2.0 Aug 8, 2026 Changes in this version + type Renderer struct + func NewRenderer(opts Options) *Renderer + func (r *Renderer) Append(s string) + func (r *Renderer) Reset() + func (r *Renderer) Source() string + func (r *Renderer) String() string + func (r *Renderer) Write(p []byte) (int, error) v0.1.0 Aug 7, 2026 Changes in this version + func Render(src string, opts Options) string + func RenderTView(blocks []Block, opts Options) string + type Block struct + Code CodeBlock + Items []ListItem + Kind BlockKind + Level int + Segments []Segment + Table TableData + func Parse(src string) ([]Block, error) + type BlockKind int + const BlockBlockquote + const BlockCodeBlock + const BlockHeading + const BlockList + const BlockParagraph + const BlockTable + const BlockThematicBreak + type CodeBlock struct + Lang string + Source string + type ListItem struct + Children []ListItem + Index int + Ordered bool + Segments []Segment + type Options struct + NoHighlight bool + Theme Theme + Width int + type Segment struct + Code bool + Link string + Style Style + Text string + type Style struct + BG string + Bold bool + Dim bool + FG string + Italic bool + Strikethrough bool + Underline bool + type TableCell struct + Align TextAlign + Segments []Segment + type TableData struct + Aligns []TextAlign + Header []TableCell + Rows [][]TableCell + type TextAlign int + const AlignCenter + const AlignDefault + const AlignLeft + const AlignRight + type Theme struct + CodeBlockFG string + Heading [6]string + Hr string + InlineCodeBG string + InlineCodeFG string + Link string + QuoteFG string + func DefaultTheme() Theme