Add mathjax support

This commit is contained in:
2024-12-21 19:17:40 -05:00
parent ba415b1af9
commit 3a21f34035
7 changed files with 74 additions and 35 deletions

View File

@@ -3,7 +3,7 @@
<div class="intro-content">
<h1 data-value="Hi, I'm Tyler" data-show="intro-tagline" class="typewriter"></h1>
<div id="intro-tagline">
<p data-value="Software engineer, polymath"></p>
<p data-value="Software engineer, aspiring polymath"></p>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<script>
MathJax = {
tex: {
displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
inlineMath: [['\\(', '\\)']] // inline
},
chtml: {
scale: 1.2
}
};
</script>
<style>
.MathJax, .mjx-math {
color: white;
}
</style>