Skip to content

Add dir=ltr to MathJax container element. (mathjax/MathJax#3589)#1526

Open
dpvc wants to merge 1 commit into
developfrom
issue3589
Open

Add dir=ltr to MathJax container element. (mathjax/MathJax#3589)#1526
dpvc wants to merge 1 commit into
developfrom
issue3589

Conversation

@dpvc

@dpvc dpvc commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR adds a dir="ltr" attribute to the mjx-container element so that the math remains left-to-right when used in right-to-left contexts. The SVG output had CSS direction: ltr, but apparently this by itself isn't enough to override q right-to-left direction. Adding unicode-bidi: isolate would do it, but apparently dir="ltr" is to be preferred (see the warning on this MDN page).

Resolves issue mathjax/MathJax#3589.

@dpvc dpvc requested a review from zorkow July 10, 2026 10:07
@dpvc dpvc added this to the v4.2 milestone Jul 10, 2026
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.47%. Comparing base (aa26ce0) to head (5739b06).

Files with missing lines Patch % Lines
ts/output/common.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1526      +/-   ##
===========================================
- Coverage    86.47%   86.47%   -0.01%     
===========================================
  Files          340      340              
  Lines        86178    86177       -1     
  Branches      4856     4856              
===========================================
- Hits         74520    74519       -1     
  Misses       11637    11637              
  Partials        21       21              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Successfully merging this pull request may close these issues.

1 participant