Skip to content

MathJax Overflow #1099

@leimao

Description

@leimao

Describe the bug

MathJax overflow for long equation.

System and Environment

Hexo 5.0 and Icarus 4.5.0

  • Hexo, OS, and node version (use hexo version command to view these information)
hexo-cli: 4.3.0
os: linux 5.15.0-43-generic Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
node: 16.16.0
v8: 9.4.146.24-node.21
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 93
nghttp2: 1.47.0
napi: 8
llhttp: 6.0.7
openssl: 1.1.1q+quic
cldr: 40.0
icu: 70.1
tz: 2021a3
unicode: 14.0
ngtcp2: 0.1.0-DEV
nghttp3: 0.1.0-DEV
  • Site configuration file _config.yml
  • Theme configuration file _config.icarus.yml or themes/icarus/_config.yml
  • Any additional theme configuration files (post front-matter, _config.post.yml, or _config.page.yml)
  • Browser and version (e.g., Firefox 70.0, Chrome Android 80.0)

Brave Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) (64-bit)

To Reproduce
Steps to reproduce the behavior, such as:

  1. Go to Principal Component Analysis using cell phone browser.
  2. Scroll down to "Minimizing Projection Residuals".
  3. We could see the overflow equation.

Expected behavior
MathJax should not overflow because we have

/* ---------------------------------
 *       MathJax and KaTeX
 * --------------------------------- */
.MathJax, .katex-display
    overflow-x: auto
    overflow-y: hidden

in plugin.styl.

Screenshots

Screenshot from 2022-08-01 22-38-25

Additional context

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:extensionIssues about widgets, comment, share, search, and plugins.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions