# Onebox in details tag

**URL:** https://meta.discourse.org/t/onebox-in-details-tag/99975
**Category:** Support
**Created:** [October 19, 2018, 10:38am UTC](https://meta.discourse.org/t/onebox-in-details-tag/99975 "2018-10-19T10:38:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![volas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/volas/32/130651_2.png) [@volas](https://meta.discourse.org/u/volas)
#### Post date: [October 19, 2018, 10:38am UTC](https://meta.discourse.org/t/onebox-in-details-tag/99975/1 "2018-10-19T10:38:00Z")

</div>

Perhaps related to [Embed youtube video into Details/Summary Tag](https://meta.discourse.org/t/embed-youtube-video-into-details-summary-tag/95166)

Onebox work with `<details>`:

> ****
>
> [![](https://global.discourse-cdn.com/meta/original/3X/8/a/8af368f965ead5ec0a2bbdd6f87fea6613c3a283.jpeg "Rod Stewart & A$AP Rocky Carpool Karaoke") ](https://www.youtube.com/watch?v=5ndj6xn2P0c)

But not with `[details]`:

> **Summary**
>
> [https://www.youtube.com/watch?v=5ndj6xn2P0c](https://www.youtube.com/watch?v=5ndj6xn2P0c)

```plaintext
[details="Summary"]

https://www.youtube.com/watch?v=5ndj6xn2P0c

[/details]

```

🙁

---

<div class="post-metadata">

### Author: ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)
#### Post date: [October 19, 2018, 10:57am UTC](https://meta.discourse.org/t/onebox-in-details-tag/99975/2 "2018-10-19T10:57:01Z")

</div>

Hi @volas

This is not a bug. It has to do with the way that the encoding works with markdown.

This is true for all oneboxing activity, as per this note:

> [@Creating rich link previews with Onebox](https://meta.discourse.org/t/creating-rich-link-previews-with-onebox/98088/1):
>
> All URLs that are within `Spoiler` or `Hide Detail` tags will be mini-oneboxed only

As you say, if you need to insert a video in a `details` tag then you can use the HTML approach instead

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 20, 2018, 12:01am UTC](https://meta.discourse.org/t/onebox-in-details-tag/99975/3 "2018-10-20T00:01:06Z")

</div>


