Skip to content

Conversation

@dpvc
Copy link
Member

@dpvc dpvc commented Sep 11, 2023

This PR fixes a problem where super- and subscripts were not placed properly on the results of \vcenter, \vbox, and \vtop elements. These are implemented using mpadded nodes with data-vertical-align attributes and a vbox property to mark them as vboxes. The problem is that the getBaseCore() method should stop at an mpadded element being used as a vbox, but was continuing down into it incorrectly if there was only one child element. The fix is to stop when the mpadded has the vbox property.

Resolves issue mathjax/MathJax#3091.

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 f30ee10 into develop Sep 15, 2023
@dpvc dpvc deleted the issue3091 branch September 15, 2023 12:21
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.

3 participants