Obsidian makes use of the Mathjax plugin, which can only be used for equations/math and is it is quite complete. It is not meant to be used for other LaTeX functionalities, such as formatting texts.
You can do things like this:
$$
\frac{1}{2}
$$
Or
$$
\frac{\text{hello}}{\text{world}}
$$