mathjax / mathjax/MathJax

Multi-letter alignment not based on baseline in Safari

Open
#3,563 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Browser Bug Code Example Duplicate
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Issue Summary

Characters are not aligned to the baseline. (html page)
<p>\(DEFGBD\)<p> <p>\(Area_{_{EFB}}\)</p> <p>\(Area_{_{DEFGBD}} - Area_{_{{\triangle}EFB}}\)</p>

Image

The following configuration can be used to solve the problem in MathJax V3 .
MathJax = { chtml: { mtextInheritFont: true } }
However, this configuration is invalid in MathJax V4 .
Are there any other methods?

Technical details:
  • MathJax Version: 4.1.0
  • Client OS: Ipad OS 16.7.15
  • Browser: Safari

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the HTML example in Safari on iPadOS and compare the multi-letter and subscript alignment with MathJax 4.1.0. Start by investigating the CHTML configuration around mtextInheritFont, then determine whether a supported MathJax 4 method restores baseline alignment; done means the reported expressions render correctly without the invalid configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.