Testing MathML

As I mentioned on Mastodon yesterday, I expect to be be including more equations in future posts, and I’d like the equations to appear readable in my RSS feed. This is a test to see if MathML will work.

I’ve been using MathJax (and its predecessor, jsMath) for many years, and it works quite well here on the blog itself, but because it formats the equations via JavaScript, the equations aren’t formatted in the RSS feed. The RSS feed just shows the LaTeX code for each equation—not bad for short equations, but increasingly hard to read as the equations get longer. If you’re an RSS subscriber, you’ve noticed that the following disclaimer appears at the bottom of each article in the feed:

If there are equations in this post, you will see them rendered properly in the original article.

where “the original article” is a link to the blog, where MathJax can do its magic.

So I’m thinking about ways to get the equations to look right in RSS readers. One obvious way is to render them as images, upload them, and insert <img> tags at the appropriate spots,1 but this seems crude and very Web 1.0. Although I suppose I could render the equations as SVGs, which would allow users to zoom in without seeing jaggies.

MathML is the “right” way to do equations and is supported by all the browsers I can think of, so the math should look right for everyone who visits the blog directly.2 The question is whether it’ll be rendered properly in RSS readers. My guess is that it will be, since I believe that RSS readers use the same rendering engines used by browsers. But the only way to know for sure is to write a post with MathML and see how it looks. So here goes:

The general formula for the mass moment of inertia about the x-axis, Ixx, is

Ixx=Vρ(y2+z2)dV

This can be specialized for certain geometries. For example, the moment of inertia of a thin rod about an axis through the rod’s center and perpendicular to it is

Ixx=112mL2

Finally, for Dan Moren, the parallel axis theorem is

IxxP=IxxC+md2

where IxxC is the moment of inertia about an axis through the centroid of the body and IxxP is the moment of inertia about a parallel axis a distance d from the centroid.

After I publish this post, I’ll check my RSS feed in NetNewsWire and update the post with a note on how the equations looked.

Update 14 Sep 2023 10:54 AM
As I hoped, NetNewWire shows the equations rendered properly (apart from some baseline misalignment for the inline math) in my RSS feed. I’m interested in hearing how other feedreaders perform.


  1. Although I use Markdown, I prefer <img> tags to the ! syntax. 

  2. Safari, unfortunately, has the worst MathML renderer of the browsers I’ve tested. What it shows is certainly readable, but the baseline is inconsistent, making the equations look a bit tipsy.