1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-08-05 21:37:37 +00:00

fix(math): restore formula overflow scroll for MathJax 4 (#2770)

Since the MathJax 4 upgrade (97a537e), the `mjx-container` overflow
rules were dropped, so long display equations extend past the viewport
and cause page-level horizontal scrolling on mobile (the fix from #545
for #543 was lost). MathJax 4 defaults to `displayOverflow: 'overflow'`;
set it to 'scroll' so long equations scroll within their own container.
This commit is contained in:
Seonhyo Choi
2026-07-08 03:45:08 +09:00
committed by GitHub
parent 01c62bc636
commit 99614aede3
+4
View File
@@ -21,5 +21,9 @@ MathJax = {
],
{%- comment -%} equation numbering {%- endcomment -%}
tags: 'ams'
},
output: {
{%- comment -%} scroll long display equations instead of overflowing the page {%- endcomment -%}
displayOverflow: 'scroll'
}
};