MathJax is routinely used for inserting equations into HTML documents [0]. A side benefit is that it uses LaTeX-like syntax for defining equations.
Static site generators like Sphinx, Hugo, and Jekyll have support for MathJax which allows for inline equations in Markdown/RsT docs. See a Sphinx example here [1].