# \[details\] breaks when embedded in a paragraph

**URL:** <https://meta.discourse.org/t/details-breaks-when-embedded-in-a-paragraph/63259>\
**Category:** Feature\
**Created:** [May 24, 2017, 3:34am UTC](https://meta.discourse.org/t/details-breaks-when-embedded-in-a-paragraph/63259 "2017-05-24T03:34:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![okeefe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/okeefe/32/72699_2.png) [@okeefe](https://meta.discourse.org/u/okeefe)\
**Post date:** [May 24, 2017, 3:34am UTC](https://meta.discourse.org/t/details-breaks-when-embedded-in-a-paragraph/63259/1 "2017-05-24T03:34:15Z")

</div>

In Discourse 1.8.0.beta13, the [details=Spoiler]This should be hidden[details] logic doesn’t work if it’s embedded in a paragraph. It does work if it’s separated by a newline. The problem appears to be in the generated html, as it’s reproducible in Chrome, Firefox, and Safari.

* * *

> **details tag with proceeding newline**
>
> This text is hidden until you click the text.

* * *

Here’s an embedded [details=details tag embedded]This text shows up all the time in the page, but _the preview makes it looks like it works_.[/details] paragraph.

---

_[View the full topic](https://meta.discourse.org/t/details-breaks-when-embedded-in-a-paragraph/63259)._
