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

Don't descend into items that aren't broken when looking for the linebreak node. (mathjax/MathJax#3135) #1024

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Nov 24, 2023

This PR fixes a problem with the size of SVG elements for in-lin math when in-line line-breaking is enabled. It fixes the determination of the node where the line breaking occurs by not descending into unbroken nodes. The bbox.start was not being properly tested, so it would descending into a fraction, for example, and stop at its numerator, giving the wrong scaling factor when the height and width of the resulting SVG was set.

Resolves issue mathjax/MathJax#3135.

@dpvc dpvc added this to the v4.0 milestone Nov 24, 2023
@dpvc dpvc assigned zorkow and unassigned zorkow Nov 24, 2023
@dpvc dpvc requested a review from zorkow November 28, 2023 13:41
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 13016ac into develop Dec 28, 2023
@dpvc dpvc deleted the issue3135 branch December 28, 2023 22:36
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