+1! Most LLMs can already output Mathpix markdown. I prompt it to do so and it gives the code and this use a rendering library to show the scalable and selectable equations. No wonder facebook nougat also uses it. Good stuff!
Was looking for a self-hosted solution as I have quite on/off needs, but I'll give it a whirl as it looks quite promising.