After reading through the article Difference between various methods for producing text in math mode I'd like to know if there is any difference between \text{}
and \textrm{}
in MathJax?
No, there is no real difference between these two in MathJax. They are both implemented through the same internal function.