Displaying oneboxes in Hide Details

AI-generated summary

Displaying oneboxes in Hide Details discussion revolves around enabling link previews when using the “hide details” feature. aron_bett initially reported that onebox doesn’t work when hiding elements. JammyDodger suggested using HTML <details> to achieve this, but aron_bett clarified that the goal is to enable link previews with the “hide details” feature.

JammyDodger’s suggestion was later confirmed to work by both aron_bett and merefield. Canapin added that several features, including inline images, don’t work inside hidden tags.

Hello,
Noticed that onebox doesn’t work when you hide elements. Any way to go about it?
See:

Hello and welcome @aron_bett :slight_smile:

I think you can use html <details> to achieve this:

<details>
<summary>
Check out my onebox
</summary>

https://www.discourse.org

</details>
Check out my onebox

still doesn’t work.
Maybe I wasn’t clear. The goal is to enable link previews when you use “hide details” feature.

When I don’t use hide details feature, the link previews appear;

That’s exactly what @JammyDodger has shown to work?

The one-box is retrieved but hidden in the details and displayed once you expand them.

Thank you @JammyDodger, @merefield . It works!

Several things don’t work inside hidden tags. Inline images won’t be rendered (and downloaded) as well:
I think there are others I don’t remember right now. :thinking:

Summary

https://cdn.unicyclist.com/uploads/default/original/3X/c/3/c3c8d9fb0aef369d62d3ce9a4283941e14c65e24.jpeg