MathJax fixes
Fixed regex for custom tags.
SWIM bug fixes