mirror of
https://github.com/Clortox/tylerperkins.xyz.git
synced 2026-03-07 10:37:58 +00:00
Add mathjax support
This commit is contained in:
18
layouts/partials/math.html
Normal file
18
layouts/partials/math.html
Normal 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>
|
||||
|
||||
Reference in New Issue
Block a user