Replaced markdown-based math solutions for TeX.