Math formula in post not display after save

I am running discourse(3.4.1) in the cosmos cloud

When editing the post the preview can show the formula properly.
But after I saved the post it shows text only. Actually sometimes it shows the formula briefly and revert back to text.

I’ve tried on different browsers, reset the cache and still the same.
There is no js error in the chrome broswer(inspect>>console)

1 Like

What flavor are you using, Mathjax or Katex? Have you tried to test the other one if it happens too?

I was using Mathjax, changed to Katex result is the same.

1 Like

Let’s try here to see.

\left. \begin{array}{l} \text{if $n$ is even:}&n/2\\ \text{if $n$ is odd:}&3n+1 \end{array} \right\} =f(n)

I can’t reproduce the issue here.
Would you be okay to share your forum URL here (or by PM if you prefer)?

1 Like