Math formulas are not rendered in mindmap

I’m using the mindmap plugin and it’s been great so far. However math formulas are not rendered correctly as shown below

It seems like there’s something wrong with the rendering output config of Katex (markmap uses Katex as far as I know). Anyone know how to fix this?