# Support BBCode/KaTeX or MathJax/HTML rendering in \[details=...\] titles when relevant plugins are installed

**URL:** https://meta.discourse.org/t/support-bbcode-katex-or-mathjax-html-rendering-in-details-titles-when-relevant-plugins-are-installed/372813
**Category:** Feature
**Tags:** math, bbcode, hide-details
**Created:** [July 3, 2025, 6:05pm UTC](https://meta.discourse.org/t/support-bbcode-katex-or-mathjax-html-rendering-in-details-titles-when-relevant-plugins-are-installed/372813 "2025-07-03T18:05:14Z")
**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: [July 3, 2025, 6:05pm UTC](https://meta.discourse.org/t/support-bbcode-katex-or-mathjax-html-rendering-in-details-titles-when-relevant-plugins-are-installed/372813/1 "2025-07-03T18:05:14Z")

</div>

I’m using both the **Discourse Math** and **Discourse BBCode** plugins on my instance. I’d like to request support for **rendering inline BBCode and KaTeX** (if using `\color`) or MathJax (if using `\textcolor`) (via `$...$`) **inside `[details=...]` titles**.

Currently, all formatting inside `[details=...]` titles is stripped or shown as literal text — even though the **content body** renders math and BBCode beautifully. This limits visual clarity when building math-heavy or educational posts where you’d want the collapsed title to reflect the structure clearly (e.g., “the \hat{r} component” or “$\textcolor{blue}{3^\text{rd}}$ term”).

If supported, the following use cases would become possible:

```bbcode
[details="[color=orange]1st Term[/color]"]
...
[/details]

```

```markdown
[details="$\textcolor{green}{\text{Vector Potential Term}}$"]
...
[/details]

```

This would allow, for example:

- Color-coded component names
- Unicode or LaTeX-encoded math symbols in section headers
- More accessible and well-structured math discussions (especially for students and researchers)

This feature could be gated behind detecting whether `discourse-math` or `discourse-bbcode` is enabled, so it doesn’t affect default Discourse behavior.

Would this be feasible as a core improvement or plugin extension?

Thanks for your amazing work on Discourse — it’s an exceptional platform for technical and academic communication.

---

_[View the full topic](https://meta.discourse.org/t/support-bbcode-katex-or-mathjax-html-rendering-in-details-titles-when-relevant-plugins-are-installed/372813)._
