diff --git a/_config.yml b/_config.yml
index 722ab2c..9c4895f 100755
--- a/_config.yml
+++ b/_config.yml
@@ -415,9 +415,6 @@ plugins:
# Codeblock Copy Button
clipboard: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
- # mathjax
- mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
-
######## Plugins for SEO:
# Traffic statistics (very slow loading)
busuanzi: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js
diff --git a/layout/_third-party/mathjax.ejs b/layout/_third-party/mathjax.ejs
index e185059..7cc34fe 100755
--- a/layout/_third-party/mathjax.ejs
+++ b/layout/_third-party/mathjax.ejs
@@ -1,19 +1,52 @@
-
+
+
diff --git a/source/css/_layout/article.styl b/source/css/_layout/article.styl
index ab6b4e4..c51a1c2 100644
--- a/source/css/_layout/article.styl
+++ b/source/css/_layout/article.styl
@@ -114,13 +114,6 @@
text-align: $textalign-p
max-width: 100%
line-height: inherit
- &.has-jax
- font-family: $fontfamily-code
- background: $color-mathjax
- padding: $gap $gap * 0.5
- border-radius: $border-codeblock
- .mjx-chtml.MJXc-display
- margin: 0
ul,ol
diff --git a/source/css/_third-party/mathjax.styl b/source/css/_third-party/mathjax.styl
new file mode 100644
index 0000000..624b653
--- /dev/null
+++ b/source/css/_third-party/mathjax.styl
@@ -0,0 +1,11 @@
+.article
+ mjx-container
+ font-family: $fontfamily-code
+ background: $color-mathjax
+ padding: $gap $gap * 0.5
+ border-radius: $border-codeblock
+ min-width: 0 !important
+ mjx-container[jax="CHTML"][display="true"], .has-jax
+ overflow: auto hidden
+ mjx-container + br
+ display: none