Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some inline math has top half cut off on mobile only #2606

Closed
tholdem opened this issue Jan 12, 2021 · 2 comments
Closed

some inline math has top half cut off on mobile only #2606

tholdem opened this issue Jan 12, 2021 · 2 comments

Comments

@tholdem
Copy link

tholdem commented Jan 12, 2021

Issue Summary

All display is correct on desktop, but on mobile (iOS 13.6 Firefox Focus Browser and Safari) some inline math (mostly intervals that look like $[a,b]$ has the top half cutoff, which looks like this

IMG_0633

But not all intervals experience this bug. I don't know why only a few experience this.

Technical details:

Supporting information:

Please see this webpage on mobile. Some intervals are cutoff
https://www.jadenmath.com/posts/extension_theorem/
Code is the same as https://geoffruddock.com/math-typesetting-in-hugo/

<script>
  MathJax = {
    tex: {
      inlineMath: [['$', '$'], ['\\(', '\\)']],
      displayMath: [['$$','$$'], ['\\[', '\\]']],
      processEscapes: true,
      processEnvironments: true
    },
    options: {
      skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']
    }
  };

  window.addEventListener('load', (event) => {
      document.querySelectorAll("mjx-container").forEach(function(x){
        x.parentElement.classList += 'has-jax'})
    });

</script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
code.has-jax {
	font: inherit;
    -webkit-font-smoothing: antialiased;
    background: inherit !important;
    border: inherit !important;
    font-size: 100%;
	color: #515151;
}
@pkra
Copy link
Contributor

pkra commented Jan 12, 2021

Probably a duplicate of #2435.

@dpvc dpvc added the Duplicate label Jan 14, 2021
@dpvc
Copy link
Member

dpvc commented Feb 1, 2021

Closing as a duplicate.

@dpvc dpvc closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants