Hmm, it would be nice if this worked. I encourage users to link to their external images hosted elsewhere, and I disabled downloading hotlinked images to save space.
The following alternative might work, but most users won’t know how to format it in Markdown that way (they’re used to just pasting the image URL on its own line):
Edit:I originally used URLs to external images, but Discourse replaces text even inside code blocks with the link to the downloaded hotlink, which feels like a bug. It should never mess with the contents of a monospaced code block.
Great new feature … a thing one of our users asked is if there is some sort of markup cheat sheet to help people remember this manual procedures, a bit like the keyboard shortcuts dialog popup associated with the keyboard icon.
Yes, published pages have very restricted access to Discourse features. Even regular lightboxes don’t work on them. Clicking an image will directly open the URL instead of showing the image viewer.
If there was a feature for images I would like to have it would be a way to add a caption, In our community I advocate for attributing images, which is not the best use of the image description.
How about adding it at least as an opt-in option in core settings including an explicit warning? that way forum admins can make that decision if they want to choose so and know that they violate the CommonMark spec.
I understand your wish here (I have the same wish, I’d love for multiple uploaded photos to automatically be in a grid without the user doing anything), but from a maintenance perspective, this opt-in option is untenable. We run thousands of Discourse instances, and having the same markup behave differently in some instances but not others can cause all sorts of headaches. It’s sadly not maintanable.
This above is our best bet as a next step. (Not sure when it will happen, but contributions here are certainly welcome if someone wants to tackle it.)
I don’t know if this is intended behaviour, but if you add images to a grid that are below the lightbox max image width/height settings then they are displayed in reduced size but with no way (*) to expand them to their original size.
For example, I created a grid with 11 uploaded images. Eight were 640x480, so below the default image width/height for lightboxing of 690x500 and the other three were 1200x372, 750x521 and 750x509. The last three were lightboxed (class=lightbox-wrapper). The first eight were class=image-wrapper, so were only displayed as approx 300x250 and couldn’t be expanded to see them in their original larger size.
(*) This behaviour can be changed by reducing the max image width/height settings, but that then affects all other images in the forum.
I think it would be better if all the images in a grid were automatically lightboxed or alternatively have different settings to the main image lightboxing setttings.