Indeed, that should do it:
https://github.com/discourse/discourse-math/pull/88
Will merge it next week.