Hmm, Jeff Moser edited that after I posted so it now makes no sense at all. Let me try again and see if Jeff can keep his fingers off the edit button this time....:
Sorry about that.. your post has shown me that I need to tweak how inline MathJax is rendered. That's what I was experimenting with. Currently only displaymode math works (i.e. math surrounded by double dollar signs on each side). Displaymode puts equations on a separate line which looks odd. I'd like to get inline math to work as well (i.e. with single dollar sign delimeters). The problem is that some programming languages use dollar signs and confuse MathJax.
Just wanted to give an update on what I was doing.