Cause the platform I’m using only supports formulas wrapped in

```
`$$ and $$`
```

Only with backticks can it be recognized as a LateX formula.

Screenshot

I want to achieve this effect:

This is the original content:

```
If the object moves at a constant speed over a distance of $2L$ in a straight line within time $2t$, then the time elapsed for the object is:
$$
tau_1 = 2t sqrt{1 - left(frac{L}{ct}right)^2}
$$
```

The desired effect is:

```
If the object moves at a constant speed over a distance of $2L$ in a straight line within time $2t$, then the time elapsed for the object is:
`$$
tau_1 = 2t sqrt{1 - left(frac{L}{ct}right)^2}
$$`
```

I have tried writing a regular expression:

```
Formulas that match a single $:
(?<!$)$([^$]+)$(?!$)
Formulas that match two $s:
(?<!$)$$([^$]+)$$(?!$)
Match a $:
(?<!$)$(?!$)
```

I have been confused for a long time and don’t know how to change it. I can’t find the corresponding answer on the Internet. I hope to get your help.

New contributor