Files
indiekit-endpoint-microsub/lib
Ricardo ee2cd26208 feat: extract images from HTML content for photo-based feeds
Feeds like xkcd embed images as <img> tags in the RSS description
rather than using enclosures or media:content. Similarly, h-feed
photo posts may have images only in e-content HTML without explicit
u-photo properties.

Add extractImagesFromHtml() that pulls <img> src URLs from sanitized
HTML content as a fallback when no explicit photos exist. Applied to
all three normalizers (RSS/Atom, JSON Feed, h-feed).

This makes comics, photo posts, and other image-centric feeds display
their images in the reader timeline card's photo grid.
2026-02-25 15:22:04 +01:00
..