# MathJax wordt niet weergegeven binnen \\u003cdetails\\u003e zonder nieuwe regel na \\u003csummary\\u003e

**URL:** <https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414>\
**Category:** Support\
**Tags:** math\
**Created:** [23 juli 2025 om 11:11 UTC](https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414 "2025-07-23T11:11:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [23 juli 2025 om 11:11 UTC](https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414/1 "2025-07-23T11:11:05Z")

</div>

Hi — this is a follow-up to my earlier post:

> [@MathJax not working inside details sections](https://meta.discourse.org/t/mathjax-not-working-inside-details-sections/372218):
>
> it would be nice if we allow discourse math to work in hidden details panes aswell?

* * *

I’ve identified that MathJax expressions inside `<details>` blocks **do not render** unless a **newline is inserted immediately after the `<summary>` tag**.

* * *

### Minimal reproduction:

This **does not render** :

```plaintext
<details><summary>Example</summary>
$$
x^2 + y^2 = z^2
$$
</details>

```

This **does render** :

```plaintext
<details><summary>Example</summary>

$$
x^2 + y^2 = z^2
$$
</details>

```

* * *

### Notes:

- This behavior is unintuitive and undocumented.
- It affects both inline and block MathJax.
- ChatGPT tells me it “Tested on Discourse 3.2.0beta3 with default settings”.

* * *

Could this be made more robust or documented somewhere for users relying on math formatting?

---

_[View the full topic](https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414)._
