mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 06:45:29 +08:00

When looking for the first paragraph with content in a post, it was matching the lightboxed image paragraph as "<p></p>". Fix that and other potential empty paragraphs with the p:not(:empty) selector. Add a new selector to find the image links in lightboxed images as valid content for emails.