diff options
Diffstat (limited to 'layouts/partials/mathjax.html')
| -rw-r--r-- | layouts/partials/mathjax.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html new file mode 100644 index 0000000..eb6315a --- /dev/null +++ b/layouts/partials/mathjax.html @@ -0,0 +1,13 @@ +<script> + window.MathJax = { + CommonHTML: { linebreaks: { automatic: true } }, + tex: { + inlineMath: [ ['$', '$'], ['\\(','\\)'] ], + displayMath: [ ['$$','$$'], ['\\[', '\\]'] ], + processEscapes: false, + noUndefined: { attributes: { mathcolor: 'red', mathbackground: '#FFEEEE', mathsize: '90%' } } }, + messageStyle: 'none' +}; +</script> +<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.2.0/es5/tex-mml-svg.js"></script> |
