Versions in this module Expand all Collapse all v1 v1.1.0 Feb 17, 2026 Changes in this version + type ContentProcessor struct + func NewContentProcessor() *ContentProcessor + func (cp *ContentProcessor) CleanNewlines(text string) string + func (cp *ContentProcessor) Process(html, url string, opts ProcessOptions) (*ProcessedContent, error) + func (cp *ContentProcessor) ProcessFromReader(r io.Reader, url string, opts ProcessOptions) (*ProcessedContent, error) + func (cp *ContentProcessor) ToMarkdown(content *ProcessedContent, includeMetadata bool, preserveLinks bool) string + func (cp *ContentProcessor) ToText(content *ProcessedContent, lineWidth int) string + type Link struct + Text string + URL string + type ProcessOptions struct + CleanHTML bool + IncludeMetadata bool + MetadataFields []string + MinContentLength int + RemoveAds bool + type ProcessedContent struct + Author string + Byline string + Content string + Excerpt string + Images []string + Length int + Links []Link + Metadata map[string]string + TextContent string + Title string