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

Syntax highlighting can fail if another plugin uses Prism too #79

Open
CodeFoodPixels opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@CodeFoodPixels
Copy link

Opening this just in case folks have a similar issue, and to track it here too.

Prism's use of global can cause issues with eleventy-plugin-syntaxhighlight's dynamic loading if another plugin that is loaded afterwards also uses Prism. I think this is related to Prism's use of global for the language loader to access the Prism instance.

Also logged this on Prism: PrismJS/prism#3636

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

1 participant