Skip to content

Commit 3c13225

Browse files
authored
Remove support for MathJax (#613)
1 parent 93df02b commit 3c13225

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

layouts/partials/posts/math.html

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
{{- if or (.Params.math) (.Site.Params.math) -}}
2-
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
3-
{{/* The file is already minified */}}
4-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
5-
<script>
6-
MathJax = {
7-
tex: {
8-
inlineMath: [
9-
['$', '$'], ['\\(', '\\)']
10-
],
11-
processEscapes: true,
12-
processEnvironments: true
13-
},
14-
options: {
15-
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']
16-
}
17-
};
18-
</script>
19-
{{- end -}}
20-
{{- if or (.Params.katex) (.Site.Params.katex) -}}
1+
{{- if or (.Params.math) (.Site.Params.math) (.Params.katex) (.Site.Params.katex) -}}
212
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
223
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous">
234
{{/* The loading of KaTeX is deferred to speed up page rendering */}}

0 commit comments

Comments
 (0)