Mathjax on the same line causes period breaks to a new line

Do you know if the issue is only happening when your locale is set to a RTL language?

In the screenshot that you posted, where should the period be appearing?