Skip to content

Conversation

@njelich
Copy link

@njelich njelich commented Nov 19, 2025

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

Fixes the HTML generation to better handle whitespace, when wrapping tags with

Additional context

Fixes #2596

Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changes indeed fixed the whitespace issue. However, it would be even better if you could also address the two other issues mentioned in this comment: #2596 (comment)

@njelich
Copy link
Author

njelich commented Jan 4, 2026

Gotcha, will do it! I didn't spot them since I just wanted my site to work with what I needed.

@cotes2020
Copy link
Owner

I have one more concern: in scenarios where an image link points to an external website, it shouldn't be opened with Glightbox. How can we distinguish these from regular images?

@cotes2020
Copy link
Owner

cotes2020 commented Jan 4, 2026

Images on a web page can also use external URLs, such as:

Given a website at https://my-blog.com/ with an image:

[![Image Link](https://a-site.com/image.png)](https://b-site.com)

In this case, relative paths are no longer sufficient to differentiate between triggering the lightbox and navigating the browser to an external site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lightbox not working with a thumbnail

2 participants