Fun fact, this stuff also fixes https://github.com/mathquill/mathquill/pull/261#issuecomment-38333601

(I was pretty confused when `git bisect` lead me here, until I saw this section.)