Jaymon / bang

A static site generator with support for RSS feeds, sitemaps, and Google Amp
MIT License
13 stars 0 forks source link

The plaintext description should strip out fig caption #32

Closed Jaymon closed 5 years ago

Jaymon commented 7 years ago

Lots of my posts have an image with a caption and the HTMLStripper keeps the caption when it creates a plaintext version of the beginning of the post:

<meta property="og:description" content="On Tuesday, November 8, 2016, we voted, and Donald Trump will be the next President of the United States. Random photo of two americans whose faces reveal their disappointment with the election results While watching the coverage of the election over the last year, I couldn't understand how any rational person could ever vote for someone like Trump, but even the most rational of people can work against their best interests when they feel unfairly treated, as demonstrated in an economic experiment called the ultimatum game1: The first player (the proposer) receives a sum of money and proposes how to divide the sum between the proposer and the other player." />

The line "Random photo of two americans whose faces reveal their disappointment with the election results" is the figcaption, this should be stripped out

Jaymon commented 6 years ago

It should also strip out footnotes

I read the man page1