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

Note: serve(prerender=true) failure caused by out of date highlight.js #933

Open
mcognetta opened this issue Dec 11, 2021 · 1 comment
Open
Labels
highlight wontfix This will not be worked on

Comments

@mcognetta
Copy link
Contributor

mcognetta commented Dec 11, 2021

This is not an issue that needs fixing, posting it here for others in case they search for it. If this is inappropriate, please let me know so I can close this and avoid doing it in the future.

After #804, calling serve(..., prerender=true) can fail if your system's highlight.js is out of date. You may get an error like:

Could not find the language '<large amount of code here>', did you forget to load/include a language module?

For example,

Could not find the language 'abstract type A{T} end\nstruct B{T} <: A{T} end', did you forget to load/include a language module?

This is caused by an outdated system highlight.js, which can be updated by npm update highlight.js. Changing the highlight.pack.js in your site's __libs directory to be 10.7+ does not resolve this issue.


The root cause is an updated API for highlight's rendering. See highlightjs/highlight.js#2277.

@tlienart
Copy link
Owner

Thanks a lot!

@tlienart tlienart added wontfix This will not be worked on highlight labels Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
highlight wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants