# Equations do not render properly in blocks

**URL:** https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640
**Category:** Bug
**Tags:** math, hide-details
**Created:** [October 23, 2024, 3:29am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640 "2024-10-23T03:29:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![KickaStone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kickastone/32/458083_2.png) [@KickaStone](https://meta.discourse.org/u/KickaStone)
#### Post date: [October 23, 2024, 3:29am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/1 "2024-10-23T03:29:17Z")

</div>

Hi, equations cannot be rendered inside the “details” tag when using the MathJax engine. Like this

```plaintext
[details="Summary"]
$a \times b = c$
[/details]

```

Could you take a look at this problem?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 16, 2026, 5:51am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/2 "2026-01-16T05:51:00Z")

</div>

It is fixed now 🤗

> **Summary**
>
> a \times b = c

---

<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: [January 16, 2026, 8:15am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/3 "2026-01-16T08:15:46Z")

</div>

Yep - this was already fixed quite a while ago 👍

The MathJax-inside-[details] issue was resolved by

> [@MathJax not working inside details sections](https://meta.discourse.org/t/mathjax-not-working-inside-details-sections/372218/4):
>
> [FIX: prefers textContent over innerText by jjaffeux · Pull Request #111 · discourse/discourse-math · GitHub](https://github.com/discourse/discourse-math/pull/111)

That change has been in place for a long time, which is why Sam’s example now renders correctly.

Looks like this report just hit an instance that hadn’t updated yet - all good now.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [January 16, 2026, 8:18am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/4 "2026-01-16T08:18:08Z")

</div>

> [@Ethsim2](#):
>
> Looks like this report just hit an instance that hadn’t updated yet

Well, the report was written in 2024. There was no fix back then. Why do you assume they haven’t updated since?

---

<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: [January 16, 2026, 8:22am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/5 "2026-01-16T08:22:01Z")

</div>

Because [https://meta.discourse.org/raw/393640](https://meta.discourse.org/raw/393640) says the report was made this year

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [January 16, 2026, 9:05am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/6 "2026-01-16T09:05:24Z")

</div>

It says the post was last updated today (which makes sense. I have added a tag). The date in the raw is `updated_at` not `created_at`

> <https://github.com/discourse/discourse/blob/8b9fb4e69fab1f2014ab519874e2b548cfdc463f/app/controllers/posts_controller.rb#L51>

---

<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: [January 16, 2026, 9:08am UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/7 "2026-01-16T09:08:14Z")

</div>

> [@Moin](#):
>
> It says the post was last updated today (which makes sense. I have added a tag). The date in the raw is “updated\_at” not “created\_at”  
> [discourse/app/controllers/posts\_controller.rb at 8b9fb4e69fab1f2014ab519874e2b548cfdc463f · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/8b9fb4e69fab1f2014ab519874e2b548cfdc463f/app/controllers/posts_controller.rb#L51)

Yep, agreed - thanks for confirming.

The confusion comes from `/raw/<topic_id>` using `updated_at` in the header, which makes historical reports look “newer” than they are.

I think the real question is whether `/raw/<topic_id>` should:

- use `created_at` instead, or
- explicitly label it as “updated”, or
- include both to avoid misinterpretation.

Happy to put together a small PR once there’s agreement on which behaviour is preferred.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 18, 2026, 9:00pm UTC](https://meta.discourse.org/t/equations-do-not-render-properly-in-blocks/393640/8 "2026-01-18T21:00:34Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
