diff options
author | Alphonse Mariya <alphonse.mariya@hotmail.com> | 2021-11-02 21:49:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 21:49:58 +0300 |
commit | 3c132254988c872e955b8b024e009a2ba0c8fb05 (patch) | |
tree | 508d26beceb0d9f706d97d1849e25f0fd0695419 | |
parent | 93df02b81a269e4a7ccb65c5b7fe10f47f4c2125 (diff) |
Remove support for MathJax (#613)
-rw-r--r-- | layouts/partials/posts/math.html | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/layouts/partials/posts/math.html b/layouts/partials/posts/math.html index bc39ce5..0a78c10 100644 --- a/layouts/partials/posts/math.html +++ b/layouts/partials/posts/math.html @@ -1,23 +1,4 @@ -{{- if or (.Params.math) (.Site.Params.math) -}} - <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> - {{/* The file is already minified */}} - <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> - <script> - MathJax = { - tex: { - inlineMath: [ - ['$', '$'], ['\\(', '\\)'] - ], - processEscapes: true, - processEnvironments: true - }, - options: { - skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'] - } - }; - </script> -{{- end -}} -{{- if or (.Params.katex) (.Site.Params.katex) -}} +{{- if or (.Params.math) (.Site.Params.math) (.Params.katex) (.Site.Params.katex) -}} <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css" integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous"> {{/* The loading of KaTeX is deferred to speed up page rendering */}} |