mirror of
https://github.com/imfing/hextra.git
synced 2025-06-19 02:53:36 -04:00
22 lines
547 B
HTML
22 lines
547 B
HTML
![]() |
{{/* MathJax */}}
|
||
|
{{ $mathjaxVersion := site.Params.math.mathjaxVersion | default "3" -}}
|
||
|
{{ $mathjaxJsUrl := printf "https://cdn.jsdelivr.net/npm/mathjax@%s/es5/tex-chtml.js" $mathjaxVersion -}}
|
||
|
<script defer id="MathJax-script" src="{{ $mathjaxJsUrl }}" crossorigin="anonymous" async></script>
|
||
|
<script>
|
||
|
MathJax = {
|
||
|
loader: {
|
||
|
load: ["ui/safe"],
|
||
|
},
|
||
|
tex: {
|
||
|
displayMath: [
|
||
|
["\\[", "\\]"],
|
||
|
["$$", "$$"],
|
||
|
],
|
||
|
inlineMath: [
|
||
|
["\\(", "\\)"],
|
||
|
["$", "$"],
|
||
|
],
|
||
|
},
|
||
|
};
|
||
|
</script>
|