For the reference, there is already a Latex->Inkscape renderer for equations but it has limits, for instance it doesn't allow editing after rendering.
https://inkscape.org/learn/tutorials/latex/I found this link very interesting for learning about https://typst.app/