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

Improve merging of math lists (mathjax/MathJax#3301). #1143

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Oct 24, 2024

This PR fixes a problem with the merging of MathLists when multiple input jax are used. The index for the location (start and end objects of the MathItem object) were not being set, and so the sorting of math items was not being done properly. This could lead to the indices within the text nodes containing the math being off when the DOM is updated, as the math is handled in the wrong order, and the text nodes are broken up, changing the character indices of the math that is out of order.

This PR includes indices that can be used to sort the lists properly, and resolves issue mathjax/MathJax#3301.

@dpvc dpvc requested a review from zorkow October 24, 2024 13:20
@dpvc dpvc added this to the v4.0 milestone Oct 24, 2024
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit d765f3f into develop Nov 12, 2024
@dpvc dpvc deleted the issue3301 branch November 12, 2024 12:04
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.

2 participants