Versions in this module Expand all Collapse all v0 v0.3.0 Oct 28, 2026 Changes in this version + const Version + var ErrClosed = &Error + func Pointer[T any](value T) *T + type Error struct + Code string + Message string + func (e *Error) Error() string + type Format string + const ANSI + const HTML + const Markdown + const Plain + type LengthRule struct + Fraction float64 + MaxLength uint32 + type Options struct + Controls string + Emphasis string + Enabled *bool + Every *uint32 + Fraction *float64 + InputFormat string + LengthRules []LengthRule + MinWordLength *uint32 + Profile string + SkipCode *bool + type Reader struct + func NewReader(ctx context.Context) (*Reader, error) + func (r *Reader) Close() error + func (r *Reader) ParseConfig(ctx context.Context, contents string) (Options, error) + func (r *Reader) Render(ctx context.Context, text string, format Format, options Options) (string, error) + func (r *Reader) Segments(ctx context.Context, text string, options Options) ([]TextSegment, error) + type TextSegment struct + Emphasized bool + Text string