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

Uneven vertical spacing on top and bottom of fractions #2411

Open
andrew-murdza opened this issue Jun 22, 2024 · 0 comments
Open

Uneven vertical spacing on top and bottom of fractions #2411

andrew-murdza opened this issue Jun 22, 2024 · 0 comments

Comments

@andrew-murdza
Copy link

andrew-murdza commented Jun 22, 2024

Code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Change FontShape of MathField</title>
  <script defer src="https://unpkg.com/mathlive"></script>
  <script src="mathjax-config.js" defer></script>
  <script type="text/javascript" id="MathJax-script" defer
          src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
  </script>
</head>
<body>
<math-field id='mf' readonly>\frac{1}{3}</math-field>
\(\displaystyle\frac{1}{3}\)
</body>
</html>

Screenshot
image

Steps to Reproduce

Run the html code

Actual Behavior

The MathLive fraction (on the left) has more vertical spacing on the bottom than the top

Expected Behavior

For the fraction to be like the one on the right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant