Documentation
¶
Overview ¶
Package speechtext turns Markdown and HTML into plain, spoken text. Formatting is deterministic. Callers may provide hooks for content that needs an application-specific description, such as a fenced code block.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
Block is the original content passed to a hook. Language is set for fenced code blocks when the fence has an info string.
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter is safe for concurrent Format calls. Configure its hooks before constructing it; New copies the hooks map.
type Hook ¶
Hook replaces one block with spoken text. An empty result omits the block. Hooks may run concurrently and must be safe for concurrent calls. The returned text is treated as plain text, never parsed as Markdown or HTML.