Versions in this module Expand all Collapse all v0 v0.1.0 Mar 31, 2026 Changes in this version + type Document struct + func New() *Document + func (d *Document) AddBlockquote(content ...any) + func (d *Document) AddCodeBlock(text string) + func (d *Document) AddHeading(level int, text string) + func (d *Document) AddHorizontalRule() + func (d *Document) AddList(items ...any) + func (d *Document) AddOrderedList(items ...any) + func (d *Document) AddPageBreak() + func (d *Document) AddParagraph(content ...any) + func (d *Document) AddTable(headers []string, rows [][]string) + func (d *Document) Render() ([]byte, error) + func (d *Document) SetAuthor(author string) + func (d *Document) SetFont(family string, sizePt int) + func (d *Document) SetGenerator(gen string) + func (d *Document) SetLineSpacing(spacing float64) + func (d *Document) SetMargins(top, bottom, left, right string) + func (d *Document) SetTitle(title string) + func (d *Document) WriteTo(w io.Writer) (int64, error) + type Span struct + func Bold(s string) Span + func Code(s string) Span + func Italic(s string) Span + func Link(text, href string) Span + func Strikethrough(s string) Span + func Text(s string) Span + func Underline(s string) Span + func (s Span) Bold() Span + func (s Span) Code() Span + func (s Span) Italic() Span + func (s Span) Strikethrough() Span + func (s Span) Underline() Span