Some inline TeX not rendering
In my repo, most of inline TeX did not render. For example, this one:

The tex syntax seems too simple to fail (I mean, what's wrong with $S$?). I tried to remove a few things around and it still baffles me... This paragraph has to be the first appearance of inline tex without having any bullet points above in order to render.
Did I make a mistake somewhere or is this a bug?
See https://github.com/github/markup/issues/1584#issue-1347876700. It's a bug that recently popped up.
The rendering of mathematical formulas is currently very bad, with a lot of bugs, and even the most basic inline formulas have problems. See https://github.com/github/markup/issues/1584#issuecomment-1229224312
Have anyone found the solution please?
I also encounter a similar problem when inline math expressions, which are enclosed between singular dollar signs $, will not render properly. Even though they look fine in markdown preview, they will not render when pushed to GIT repo.
I found that, if we use double dollar signs $$ and leave it inside a paragraph, it will render inline expressions properly. However, it doesn't render properly in markdown preview, which is hard to write long posts. This is really driving me crazy.