TetraTsunami / linklooker

Previews links using ChatGPT when you hover over them
3 stars 0 forks source link

Extract headings #8

Open TetraTsunami opened 4 months ago

TetraTsunami commented 4 months ago

I think an outline of an article could be very relevant, both to the AI and to readers. We're already processing documents using Readability, so we just need to extract a list of header elements and their text, in the order they appear in the document. I would rather do this after Readability has been applied, so we can't use Cheerio like in the SW.