# MathJax 在 \`\<summary\>\` 后没有换行时无法在 \`\<details\>\` 中渲染

**URL:** <https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414>\
**Category:** Support\
**Tags:** math\
**Created:** [2025年七月23日 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:** 2

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年七月23日 16:40 UTC](https://meta.discourse.org/t/mathjax-not-rendering-inside-details-without-newline-after-summary/375414/2 "2025-07-23T16:40:33Z")

</div>

我可以修复它，但如果你使用了 details 块就不会有这个问题：

```plaintext
[details="test"]
$$
x^2 + y^2 = z^2
$$
[/details]

```

---

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