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