readable

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package readable turns an HTML page into clean Markdown. A raw page is mostly chrome (scripts, nav, styling) that wastes the model's context and buries the text that matters. This lifts out the main content and renders it as Markdown, which the model reads far better than a wall of tags. It is pure Go, so tomo stays a single static binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Title    string
	Markdown string
}

Page is the readable view of a document.

func FromHTML

func FromHTML(r io.Reader) (Page, error)

FromHTML parses r and returns its title and the main content as Markdown.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL