motorino/internal/site
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 28745d452f feat(gemtext): convert the HTML of a page to gemtext
A new package, with no new dependency, that reads the HTML a page renders to (the
lenient mode of encoding/xml with the HTML void elements and entities) and writes
gemtext: three heading levels, one line paragraphs, the links of a paragraph, a list,
a quote or a table on lines of their own after it, bullets (a list of only links is
link lines), quotes (a note is a quote), preformatted blocks, tables as aligned
preformatted blocks, images as link lines, no emphasis, and lines that look like
gemtext are protected. Options.Link maps or drops an address and its error stops
the conversion; Options.Block expands the placeholders of generated blocks.

The language files also keep the order of the menu now (Lang.NavOrder), which the
Gemini output needs.

Refs #10
2026-11-16 12:19:38 +01:00
..
site.go feat(gemtext): convert the HTML of a page to gemtext 2026-11-16 12:19:38 +01:00
site_test.go feat(gemtext): convert the HTML of a page to gemtext 2026-11-16 12:19:38 +01:00