mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:46:08 +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.