KaTeX with MathJax fallback