Finetune the handling of MathJax paths.