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

MathJax mj() function used to have correct output but now has wrong output #38245

Open
2 tasks done
linuxbckp opened this issue Jun 20, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@linuxbckp
Copy link

linuxbckp commented Jun 20, 2024

Steps To Reproduce

  1. in SageMath 9.3 mj() function outputs correct MathJax HTML
  • e.g.
    sage: from sage.misc.html import MathJax
    sage: mj = MathJax()
    sage: mj('y = x^2 + 2^(x*y) + y^2')
<script type="math/tex; mode=display">\newcommand{\Bold}[1]{\mathbf{#1}}\phantom{\verb!x!}\verb|y|\phantom{\verb!x!}\verb|=|\phantom{\verb!x!}\verb|x^2|\phantom{\verb!x!}\verb|+|\phantom{\verb!x!}\verb|2^(x*y)|\phantom{\verb!x!}\verb|+|\phantom{\verb!x!}\verb|y^2|</script>
  1. in SageMath 10.3 mj() function outputs wrong MathJax HTML
  • e.g.
    sage: from sage.misc.html import MathJax
    sage: mj = MathJax()
    sage: mj('y = x^2 + 2^(x*y) + y^2')
\[\verb|y|\verb| |\verb|=|\verb| |\verb|x^2|\verb| |\verb|+|\verb| |\verb|2^(x*y)|\verb| |\verb|+|\verb| |\verb|y^2|\]

Expected Behavior

image

Actual Behavior

image

Additional Information

No response

Environment

- **OS**:Arch Linux 2024.06.01
- **Sage Version**: 10.3

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@linuxbckp linuxbckp changed the title MathJax mj() function used to has correct output but now has wrong output MathJax mj() function used to have correct output but now has wrong output Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant