yeslogic / prince-scripts

Useful javascript helper scripts for Prince
MIT License
6 stars 6 forks source link

error: SyntaxError: unexpected token reserved("class") #4

Open stroobandt opened 1 year ago

stroobandt commented 1 year ago

Hi, I tried out the exact same MathJax example HTML with compat.js as described in the README.md, using the latest Prince 15.1 on Ubuntu 22.04 amd64.

This resulted in the following error and no MathJax formulas rendered:

$ prince --input=html test.html --javascript --output=test.pdf
prince: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js:1: error: SyntaxError: unexpected token reserved("class")
hallvors commented 1 year ago

Hi, this is a known and unfortunate issue - see https://github.com/mathjax/MathJax-src/issues/899 for some more discussion

OscarTheFabulous commented 8 months ago

Hi! Is there a fix for this issue yet? I've looked at the discussion and haven't found anything meaningful.

mikeday commented 8 months ago

I think the only fix is repacking MathJax, as described in the linked thread.