add mathjax

This commit is contained in:
geekifan
2025-04-27 11:35:06 +08:00
parent 495e1c1b1e
commit 071214d1f3
2 changed files with 18 additions and 4 deletions

15
assets/js/mathjax.js Normal file
View File

@ -0,0 +1,15 @@
document.addEventListener('DOMContentLoaded', () => {
MathJax = {
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)']
],
displayMath: [
['$$', '$$'],
['\\[', '\\]']
],
tags: 'ams'
}
};
});