diff --git a/assets/sass/components/_math.scss b/assets/sass/components/_math.scss
index 740c6e3..2a66e4d 100644
--- a/assets/sass/components/_math.scss
+++ b/assets/sass/components/_math.scss
@@ -1,11 +1,5 @@
-code.has-jax {
- font: inherit;
- font-size: 100%;
- background: inherit;
- border: inherit;
- color: #515151;
-}
-
.MathJax {
- font-size: 120% !important;
-}
\ No newline at end of file
+ overflow-x: auto;
+ overflow-y: hidden;
+ box-sizing: border-box;
+}
diff --git a/data/lib.toml b/data/lib.toml
index 72dca85..e80f7f2 100644
--- a/data/lib.toml
+++ b/data/lib.toml
@@ -20,7 +20,7 @@
url = "https://cdn.jsdelivr.net/npm/raphael@2.3.0/raphael.min.js"
[js.mathjax]
- url = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js"
+ url = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
[js.webfont]
sri = "" # no sri
diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html
index e3542a6..edca548 100644
--- a/layouts/partials/script/single-script.html
+++ b/layouts/partials/script/single-script.html
@@ -30,35 +30,27 @@
{{ end }}
{{ if in .Params.Libraries "mathjax" }}
-
+
+
{{ end }}
{{ if in .Params.Libraries "msc" }}