Skip to content

Mathjax 3.2.0 (and earlier versions too) have broken svg layout when compared to 2.5 series #2836

@kevinhendricks

Description

@kevinhendricks

Issue Summary

Attached is a testmj.zip folder which has mathml pages extracted from the official epub 3.0 test suite extracted into xhtml.

This test is nice as it has its own images of what the mathml should look like when properly processed by MathJax.

I have tested with FireFox, Safari, Chrome, and QtWebEngine (Sigil and PageEdit) and all show the same errors under MathJax 3.2.0, 3.1.X, etc

The .xhtml file names indicates the the version of MathJax and the output chosen.

Using the mml-svg testcase you can see that the series, integral, and infinite sum equations at the top of the file no longer layout properly (and have not in any of the MathJax after 3.0.5).

The testsuite also shows issues with bidirectional multiscipts in rtl in both mml-svg and mml-chtml.

Included is also a test of the newly added back mml3 extension (trying to follow the latest MathJax 3.2 docs to enable it) but it fails every time with mlongdiv unknown. Perhaps I have set it up incorrectly.

Steps to Reproduce:

  1. Unzip testmj.zip
  2. Use Safari, Chrome, etc to "Open File" the .xhtml files in testmj/text/
  3. The test name indicates what is being tested (please choose an svg output one)

Results should be similar to old single file MathJax 2.7.5 included beside the xhtml files.

Technical details:

  • MathJax Version: 3.2
  • Client OS: Mac OS X 10.15, Windows 11, QtWebEngine (Qt 6.2.3 and Qt 5.12.9), etc
  • Browser: Chrome, Safari, Firefox, etc

Supporting information:

Attached standalone test case so you can see everything.

testmj.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamFixedv3v3.2

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions