Displaying latex equations in ui.markdown()

I would like to display equations in my shiny for python app. I thought I would be able to do this with ui.markdown(), however it does not render them. Has anyone else done this?

Take a look at How to render LaTeX in Shiny for Python? - Stack Overflow

Hi Simon, thanks for the response. I found this post myself, but I would rather not resort to using JavaScript in the app. It feels like it should be possible with ui.markdown(). I think it is using markdown-it under the hood, which supports latex with a plugin. I am just trying to work out how the set that up and wondering if anyone else has done it.