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

Move mhchem files to ts/input/tex/mhchem and down-compile to ES5 (mathjax/MathJax#2673) #689

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Apr 23, 2021

This PR resolves the problem with using the mhchemparser npm package (which is compiled to ES6) within node modules that call MathJax modules directly. It includes the mhchemparser source files in the MathJax-sc/ts tree (as Martin originally asked), and compiles them along with the rest of MathJax.

The real solution is to have MathJax down-compile to ES5 rather than ES6.

Resolves issue mathjax/MathJax#2673.

@dpvc dpvc requested a review from zorkow April 23, 2021 12:18
@dpvc dpvc added this to the 3.1.4 milestone Apr 23, 2021
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.

I tested in a couple of use cases and it works fine.

@dpvc dpvc merged commit 59212ff into develop Apr 23, 2021
@dpvc dpvc deleted the mhchem-es5 branch April 23, 2021 15:35
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.

None yet

2 participants