2021-07-30 21:07:51 +02:00
|
|
|
{{ if .Params.katex }}
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
|
|
|
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"></script>
|
|
|
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"></script>
|
2021-08-21 15:56:16 +02:00
|
|
|
<script defer>
|
2021-07-30 21:07:51 +02:00
|
|
|
renderMathInElement(
|
|
|
|
document.body,
|
|
|
|
{
|
|
|
|
delimiters: [
|
|
|
|
{ left: "$$", right: "$$", display: true },
|
|
|
|
{ left: "\\[", right: "\\]", display: true },
|
|
|
|
{ left: "$", right: "$", display: false },
|
|
|
|
{ left: "\\(", right: "\\)", display: false }
|
|
|
|
],
|
|
|
|
displayMode: true
|
|
|
|
}
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
{{ else }}
|
|
|
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
|
|
|
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
2021-08-21 15:56:16 +02:00
|
|
|
<script defer>
|
2021-07-30 21:07:51 +02:00
|
|
|
window.MathJax = {
|
|
|
|
tex: {
|
|
|
|
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
{{ end }}
|