mirror of
https://github.com/svemagie/indiekit-endpoint-microsub.git
synced 2026-04-02 15:35:00 +02:00
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.
1.3 KiB
1.3 KiB