# Summary does not display oneboxed images

**URL:** https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178
**Category:** Bug
**Tags:** pr-welcome
**Created:** [August 31, 2017, 11:03pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178 "2017-08-31T23:03:02Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![rehe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rehe/32/116975_2.png) [@rehe](https://meta.discourse.org/u/rehe)
#### Post date: [August 31, 2017, 11:03pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/1 "2017-08-31T23:03:02Z")

</div>

Hi!

Since the last update I have seen something that does not work well. Any content inside a **_Summary_** is not displayed (image, youtube video, gif, mp4, etc.), only the link is displayed. Before this did not happen, the **_Summary_** content was displayed correctly.

Any ideas?

Thanks!

 ![](https://global.discourse-cdn.com/meta/original/4X/7/8/8/788427918112b365b1a859c0ae4fb14a00cd82fa.jpeg)  
Edit:

Okay, I see that the same thing happens here too 😮

> **Summary**
>
> ![](https://global.discourse-cdn.com/meta/original/4X/7/8/8/788427918112b365b1a859c0ae4fb14a00cd82fa.jpeg)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [August 31, 2017, 11:04pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/2 "2017-08-31T23:04:59Z")

</div>

I can repro.

> **Summary**
>
> [Imgur: The magic of the Internet](https://i.imgur.com/CCNdQ8e.jpg)

---

<div class="post-metadata">

### Author: ![rehe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rehe/32/116975_2.png) [@rehe](https://meta.discourse.org/u/rehe)
#### Post date: [August 31, 2017, 11:06pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/3 "2017-08-31T23:06:20Z")

</div>

> [@jomaxro](#):
>
> I can repro.

I do not understand. Sorry, my english is very bad! 😄

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [August 31, 2017, 11:06pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/4 "2017-08-31T23:06:52Z")

</div>

My apologies. Repro is short for reproduce. I was confirming that I can follow the steps you provided and make the issue you’ve reported occur myself.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [September 1, 2017, 1:44am UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/5 "2017-09-01T01:44:38Z")

</div>

Not sure if this is related, but I just stumbled upon a similar issue:

> **I have an empty quote**
>
> > ![image](https://global.discourse-cdn.com/meta/original/3X/0/5/059235763048f89db530f649a6ab619255296b73.jpg)

… or do I?

```plaintext
[details="I have an empty quote"]

> ![image|690x75](upload://NhDzLiw1SK7W5nA5MpCrFPqL75.jpg)

[/details]

```

Weirdly, this works fine on the preview panel inside composer.

---

<div class="post-metadata">

### Author: ![rehe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rehe/32/116975_2.png) [@rehe](https://meta.discourse.org/u/rehe)
#### Post date: [September 2, 2017, 8:11pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/6 "2017-09-02T20:11:21Z")

</div>

I have updated to the latest version and the bug is still present ☹

---

<div class="post-metadata">

### Author: ![coderberry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderberry/32/99652_2.png) [@coderberry](https://meta.discourse.org/u/coderberry)
#### Post date: [December 8, 2017, 10:03pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/7 "2017-12-08T22:03:00Z")

</div>

This is a test to see if it’s still an issue:

> **Summary**
>
> ![69c354c204760a4319171bc6245bcfdc](https://global.discourse-cdn.com/meta/original/3X/3/2/322a5667961ad701058953e5c4221a9d64d2118c.jpeg)

---

<div class="post-metadata">

### Author: ![coderberry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderberry/32/99652_2.png) [@coderberry](https://meta.discourse.org/u/coderberry)
#### Post date: [December 8, 2017, 10:04pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/8 "2017-12-08T22:04:40Z")

</div>

It appears this has since been fixed for new summaries? It’s odd that it hasn’t retroactively fixed the other examples above on this thread.

I’ll dig in a little bit and see what I can find.

---

<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: [December 8, 2017, 10:15pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/9 "2017-12-08T22:15:00Z")

</div>

Why is that odd? Posts are baked into HTML once, at post time, to save server time. They reflect the state of the code as of post time. If you want to rebake a post (and have mod / admin access), select the wrench menu and then rebake.

There’s also a global rebake rake task for all posts.

---

<div class="post-metadata">

### Author: ![coderberry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderberry/32/99652_2.png) [@coderberry](https://meta.discourse.org/u/coderberry)
#### Post date: [December 8, 2017, 10:16pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/10 "2017-12-08T22:16:14Z")

</div>

Ah. I wasn’t aware. Sounds like this is a closed issue then 👍🏻

---

<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: [December 8, 2017, 10:24pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/11 "2017-12-08T22:24:31Z")

</div>



---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 9, 2017, 2:07am UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/12 "2017-12-09T02:07:43Z")

</div>



---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 9, 2017, 2:10am UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/13 "2017-12-09T02:10:12Z")

</div>

Hmm…I don’t think the bug originally reported is fixed. The report was for a oneboxed image failing in a details block.

**This is an imgur link:**

```plaintext
![CCNdQ8e](upload://jduaBsPQleI8SpyeR7N5CpLKtv4.jpeg)

```

**This is the link oneboxed:**

 ![CCNdQ8e](https://global.discourse-cdn.com/meta/original/4X/8/6/a/86af95dd243d2180807f98e8399cfd189a26dd5a.jpeg)  
**This is the link in a details block:**

```plaintext
[details="Summary"]

![CCNdQ8e](upload://jduaBsPQleI8SpyeR7N5CpLKtv4.jpeg)
[/details]

```

**This is the details block:**

> **Summary**
>
> ![CCNdQ8e](https://global.discourse-cdn.com/meta/original/4X/8/6/a/86af95dd243d2180807f98e8399cfd189a26dd5a.jpeg)

Oneboxing is still not happening inside details.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 9, 2017, 3:57am UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/14 "2017-12-09T03:57:09Z")

</div>

As a work around, they can use (note the empty lines above and below the image line)

```plaintext
<details><summary>Test</summary>

![CCNdQ8e](upload://jduaBsPQleI8SpyeR7N5CpLKtv4.jpeg)
</details>

```

Which produces

> **Test**
>
> ![CCNdQ8e](https://global.discourse-cdn.com/meta/original/4X/8/6/a/86af95dd243d2180807f98e8399cfd189a26dd5a.jpeg)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 9, 2017, 3:58am UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/15 "2017-12-09T03:58:58Z")

</div>

Edited my post, still not working. Strange that the HTML details works but the bbcode details doesn’t.

---

<div class="post-metadata">

### Author: ![coderberry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderberry/32/99652_2.png) [@coderberry](https://meta.discourse.org/u/coderberry)
#### Post date: [December 11, 2017, 9:48pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/16 "2017-12-11T21:48:35Z")

</div>

I’ll take a stab at fixing this.

@jomaxro I just want to confirm: Expected behavior is we do not need to use markdown to display images inline, correct?

For example, this should show the image inline:

```plaintext
[details="Summary"]

https://i.imgur.com/CCNdQ8e.jpg

[/details]

```

As well as this:

```plaintext
[details="I have an empty quote"]

![image](https://i.imgur.com/CCNdQ8e.jpg)

[/details]

```

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 11, 2017, 10:34pm UTC](https://meta.discourse.org/t/summary-does-not-display-oneboxed-images/69178/17 "2017-12-11T22:34:09Z")

</div>

@coderberry, that’s my understanding, yes. If that imgur link “expands” outside of a details block, it should expand the same inside.
