KaTeX
KaTeX copied to clipboard
Cannot declare a const variable twice: 'e' with wkhtmltoimage
Before reporting a bug
- [ X] Check common issues.
- [ ] Check the bug is reproducible in the demo. If not, check KaTeX is up-to-date and installed correctly.
- [ X] Search for existing issues.
Describe the bug: When I try to transform with wkhtmltoimage an HTML file containing formulas , I get an error "Cannot declare a const variable twice: 'e'" if I use .016.10 while it works fine with 0.16.9.
To Reproduce: Steps to reproduce the behavior:
- Create an HTML file with a formula and a call to KaTeX, let's say index.html.
- Execute: wkhtmltoimage --enable-local-file-access --debug-javascript index.html index.png
- See error
Environment (please complete the following information):
- KaTeX Version: 0.16.10
- OS: Debian 12
- Browser: wkhtmltoimage
- Version: 0.12.6