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

does not render \sqrt{..}^{..} correctly #43

Open
infinity0 opened this issue Oct 27, 2022 · 1 comment
Open

does not render \sqrt{..}^{..} correctly #43

infinity0 opened this issue Oct 27, 2022 · 1 comment
Assignees

Comments

@infinity0
Copy link
Contributor

latexmath gets confused by the combination of \sqrt and ^. With \sqrt{a}^{b} instead the output looks like \sqrt(^) a b:

<mrow><msqrt><mi>^</mi></msqrt><mrow><mi>&#x00061;</mi></mrow><mrow><mi>&#x00062;</mi></mrow></mrow>

It should instead be:

  <msup>
    <msqrt>
      <mi>a</mi>
    </msqrt>
    <mi>b</mi>
  </msup>
@ronaldtse
Copy link
Contributor

Thanks @infinity0 for opening this issue!

The functionality of the latexmath gem has now been superseded by the plurimath gem which also converts LaTeX math formulas into MathML (amongst others). We will handle this issue at the plurimath repo and ensure that this particular case is tested.

@suleman-uzair can you help verify if this issue occurs at plurimath? Thanks.

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

No branches or pull requests

3 participants