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:
[details="[color=orange]1st Term[/color]"]
...
[/details]
[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.