mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Remove support for MathJax (#613)
This commit is contained in:
@@ -1,23 +1,4 @@
|
|||||||
{{- if or (.Params.math) (.Site.Params.math) -}}
|
{{- if or (.Params.math) (.Site.Params.math) (.Params.katex) (.Site.Params.katex) -}}
|
||||||
<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) -}}
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css"
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css"
|
||||||
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous">
|
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous">
|
||||||
{{/* The loading of KaTeX is deferred to speed up page rendering */}}
|
{{/* The loading of KaTeX is deferred to speed up page rendering */}}
|
||||||
|
|||||||
Reference in New Issue
Block a user