This page shows that it is easy in Constrain to add TeX math formulas, formatted by MathJax, to a diagram.