The same happens when using \vert instead of just the pipe character.
I’m not sure if this is a rendering bug with mathjax or latex but I couldn’t find anything on google about this happening to anyone else.
The weird thing is the pipe is taking up space because I can see the block getting taller in live preview. Same happens with using \bigg{|} which works with other characters like [ and ( but just not pipes.
I just double checked it in the sandbox vault and it’s not displaying there either.
There must be a bug with obsidian on my laptop cause its actually displaying fine on my phone.
Strange!