mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.19k stars 1.16k forks source link

Feature Request: Unminified MathJax cdn script #2851

Open evenstensberg opened 2 years ago

evenstensberg commented 2 years ago

Is your feature request related to a problem? Please describe. I want a unminified script so that I can run a security audit on MathJax

Describe the solution you'd like Unminified script

Describe alternatives you've considered N/A

Additional context N/A

dpvc commented 2 years ago

MathJax consists of several separate component files, and we don't provide unminified versions of them. You can, however produce un-minified versions yourself, if you wish.

Clone the MathJax-src repository, and comment out these lines in the webpack configuration, and change minimize: true to minimize: false in the previous line. Then do

npm install
npm run -s compile
npm run -s make-components

This will build all the components, un-minified, which you can find in the es5 directory.

evenstensberg commented 2 years ago

I want to audit this repo for vulnerabilities with Snyk, so it would be nice if each version came with an unminified script 👍🏾