# Show video, audio, and picture in the solved area

**URL:** https://meta.discourse.org/t/show-video-audio-and-picture-in-the-solved-area/105831
**Category:** Feature
**Tags:** solved
**Created:** [1월 6, 2019, 6:32오후 UTC](https://meta.discourse.org/t/show-video-audio-and-picture-in-the-solved-area/105831 "2019-01-06T18:32:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [1월 6, 2019, 6:32오후 UTC](https://meta.discourse.org/t/show-video-audio-and-picture-in-the-solved-area/105831/1 "2019-01-06T18:32:07Z")

</div>

When someone posts a video as the answer and its accepted, I think it’s better to show the video instead of the link in the solved area below the topic. Same thing might apply for audio and picture.

 ![Screenshot_2019-01-06%20%D8%AA%D9%84%D9%81%D8%B8%20grocery](https://global.discourse-cdn.com/meta/original/3X/9/3/93ebc61ee21ea1eda3b29366bc09e0dddab5b800.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 11, 2025, 4:07오후 UTC](https://meta.discourse.org/t/show-video-audio-and-picture-in-the-solved-area/105831/2 "2025-12-11T16:07:47Z")

</div>

이제는 다음과 같이 수행됩니다.

> <https://github.com/discourse/discourse/pull/36552>
>
> Previously, solution excerpts shown in the OP used PrettyText.excerpt() which st…ripped all HTML formatting - code blocks, images, quotes, and other rich content were reduced to plain text, making technical solutions difficult to read.
> 
> Now the full cooked content is sent to the client, preserving all formatting. The excerpt is displayed in a collapsed state by default with a max-height and gradient fade, expandable via toggle. This keeps the UI compact while allowing users to see properly formatted solutions.
> 
> Changes:
> \- Use answer\_post.cooked instead of PrettyText.excerpt() in topic\_extension.rb
> \- Rewrite SolvedAcceptedAnswer component with self-contained expand/collapse
> \- Add CSS for collapsed state (max-height: 300px with gradient overlay)
> \- Add system specs for code block and image preservation
> 
> \*\*BEFORE\*\*
> 
> \<img width="1488" height="1284" alt="BEFORE" src="https://github.com/user-attachments/assets/ec9e5932-62bb-4b6a-9a15-5efe5af2881c" /\>
> 
> \*\*AFTER\*\*
> 
> \<img width="1488" height="1284" alt="AFTER" src="https://github.com/user-attachments/assets/845bcd66-8abf-445c-9d76-cfbaa6e436a0" /\>
> 
> Internal ref - t/168315

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 11, 2025, 4:07오후 UTC](https://meta.discourse.org/t/show-video-audio-and-picture-in-the-solved-area/105831/3 "2025-12-11T16:07:51Z")

</div>


