This extension adds math formulas support to Python-Markdown WWW: https://pypi.org/project/python-markdown-math/