From f4fd49c97fde7089fed5debe8cb542d907a1f7a1 Mon Sep 17 00:00:00 2001 From: eggy Date: Wed, 12 Oct 2022 12:34:06 -0400 Subject: [PATCH] feat: switch from mathjax to katex mathjax is sooooooo slow --- mkdocs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index dd5e219..c4bc847 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -41,7 +41,6 @@ theme: markdown_extensions: - mdx_math: - add_preview: True enable_dollar_delimiter: True - admonition - pymdownx.details @@ -53,4 +52,11 @@ markdown_extensions: permalink: True extra_javascript: - ["https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js", "mathjax-config.js"] + [ + "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.2/katex.min.js", + "https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/contrib/mhchem.min.js", + "https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js", + ] + +extra_css: + ["https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.2/katex.min.css"]