$ pip install mkdocs python-markdown-math
site_name: LaTeX within MkDocs
pages:
- Home: index.md
theme: readthedocs
use_directory_urls: false
plugins:
- search
extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML
markdown_extensions:
- mdx_math
# MathJax Test Page
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
Source: StackOverflow