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

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

Open
stroobandt opened this issue Mar 23, 2023 · 3 comments
Open

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

stroobandt opened this issue Mar 23, 2023 · 3 comments

Comments

@stroobandt
Copy link

stroobandt commented Mar 23, 2023

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
Copy link
Collaborator

Hi, this is a known and unfortunate issue - see mathjax/MathJax-src#899 for some more discussion

@OscarTheFabulous
Copy link

OscarTheFabulous commented Feb 8, 2024

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

@mikeday
Copy link

mikeday commented Feb 8, 2024

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

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

No branches or pull requests

4 participants