Mark math spans with class="math" (in addition to any cm-* classes).

Exclude math spans from font-family: monospace
to avoid mathjax vertically squishing formulas, especially display.