詳細を非表示でワンボックスを表示

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

「いいね!」 1

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
「いいね!」 5

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;

「いいね!」 1

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.

「いいね!」 4

Thank you @JammyDodger, @merefield . It works!

「いいね!」 3

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

「いいね!」 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.