summaryrefslogtreecommitdiff
path: root/layouts/partials/mathjax.html
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2024-03-24 14:41:32 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2024-03-24 14:41:32 -0500
commit4aed6ea63ae93704b5d4cc07b528a0dd70a5d752 (patch)
treed7610e41ff54da3f340cec1c86134c189a44db8a /layouts/partials/mathjax.html
initial commit; forked from https://github.com/Yukuro/hugo-theme-shell
Diffstat (limited to 'layouts/partials/mathjax.html')
-rw-r--r--layouts/partials/mathjax.html13
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>