# ⚠️ Inline KaTeX/MathJax $...$ inside \[grid\] can leak BBCode when used with \[details\]

**URL:** https://meta.discourse.org/t/inline-katex-mathjax-inside-grid-can-leak-bbcode-when-used-with-details/372802
**Category:** Support
**Tags:** math
**Created:** [July 3, 2025, 4:22pm UTC](https://meta.discourse.org/t/inline-katex-mathjax-inside-grid-can-leak-bbcode-when-used-with-details/372802 "2025-07-03T16:22:25Z")
**Posts on this page:** 1
**Showing post:** 3

<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:17pm UTC](https://meta.discourse.org/t/inline-katex-mathjax-inside-grid-can-leak-bbcode-when-used-with-details/372802/3 "2025-07-03T18:17:43Z")

</div>

i thought i should at least conculde mathematically accurate information, not ChatGPT waffle 😀

* * *

\frac{1}{r^2 \sin\theta} \left| \begin{matrix} \textcolor{orange}{\hat{r}} & r\hat{\theta} & r\sin\theta\,\hat{\phi} \\ \partial\_r & \boxed{\partial\_\theta} & \boxed{\partial\_\phi} \\ A\_r & \boxed{r A\_\theta} & \boxed{r\sin\theta\, A\_\phi} \end{matrix} \right|

\frac{1}{r^2 \sin\theta} \left| \begin{matrix} \textcolor{orange}{\hat{r}} & r\hat{\theta} & r\sin\theta\,\hat{\phi} \\ \partial\_r & \boxed{\partial\_\theta} & \boxed{\partial\_\phi} \\ A\_r & \boxed{r A\_\theta} & \boxed{r\sin\theta\, A\_\phi} \end{matrix} \right|

> **the 1st term of the Curl**
>
> [center]  
> \Huge \frac{1}{r^2 \sin\theta} \cdot \textcolor{orange}{\hat{r}}\begin{vmatrix} \partial\_\theta & \partial\_\phi \\ r A\_\theta & r\sin\theta\, A\_\phi \end{vmatrix}  
> [/center]

* * *

\textcolor{red}{ \frac{1}{r^2 \sin\theta} \left| \begin{matrix} \hat{r} & \textcolor{purple}{r\hat{\theta}} & r\sin\theta\,\hat{\phi} \\ \left.\overrightarrow{\partial\_r}\right| & \partial\_\theta & \left|\overrightarrow{\;\;\;\;\;\partial\_\phi\;\;\;\;\;\;}\right. \\ \left.\underrightarrow{A\_r}\right| & r A\_\theta & \underrightarrow{\biggl| \, r\sin\theta\, A\_\phi \,} \end{matrix} \right| }

\textcolor{green}{ \frac{1}{r^2 \sin\theta} \left| \begin{matrix} \hat{r} & \textcolor{purple}{r\hat{\theta}} & r\sin\theta\,\hat{\phi} \\ \left|\overrightarrow{\partial\_r}\right. & \partial\_\theta & \left.\overrightarrow{\;\;\;\;\;\partial\_\phi\;\;\;\;\;\;}\right| \\ \left|\underrightarrow{A\_r}\right. & r A\_\theta & \underrightarrow{ \, r\sin\theta\, A\_\phi \, \biggl|} \end{matrix} \right| }

> **the 2nd term of the Curl**
>
> [center]  
> \Huge \textcolor{red}{- \frac{1}{r^2 \sin\theta} \cdot \textcolor{purple}{r\hat{\theta}}\begin{vmatrix} \partial\_\phi & \partial\_r \\ r\sin\theta\, A\_\phi & A\_r \end{vmatrix} }
> 
> \Huge \textcolor{green}{+ \frac{1}{r^2 \sin\theta} \cdot \textcolor{purple}{r\hat{\theta}}\begin{vmatrix} \partial\_r & \partial\_\phi \\ A\_r & r\sin\theta\, A\_\phi \end{vmatrix} }  
> [/center]

* * *

\frac{1}{r^2 \sin\theta} \left| \begin{matrix} \hat{r} & r\hat{\theta} & \textcolor{blue}{r\sin\theta\,\hat{\phi}} \\ \boxed{\partial\_r} & \boxed{\partial\_\theta} & \partial\_\phi \\ \boxed{A\_r} & \boxed{r A\_\theta} & r\sin\theta\, A\_\phi \end{matrix} \right|

\frac{1}{r^2 \sin\theta} \left| \begin{matrix} \hat{r} & r\hat{\theta} & \textcolor{blue}{r\sin\theta\,\hat{\phi}} \\ \boxed{\partial\_r} & \boxed{\partial\_\theta} & \partial\_\phi \\ \boxed{A\_r} & \boxed{r A\_\theta} & r\sin\theta\, A\_\phi \end{matrix} \right|

> **the 3rd term of the Curl**
>
> [center]  
> \Huge \frac{1}{r^2 \sin\theta} \cdot \textcolor{blue}{r\sin\theta\,\hat{\phi}}\begin{vmatrix} \partial\_r & \partial\_\theta \\ A\_r & r A\_\theta \end{vmatrix}  
> [/center]

* * *

i have created [another Topic](https://meta.discourse.org/t/support-bbcode-latex-html-rendering-in-details-titles-when-relevant-plugins-are-installed/372813) about colouring the text in the details panes titles’ , which could match the 3 colours on specific elements

---

_[View the full topic](https://meta.discourse.org/t/inline-katex-mathjax-inside-grid-can-leak-bbcode-when-used-with-details/372802)._
