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
Problems with several code blocks in the same page #3363
Comments
Could you please provide a minimal example project reproducing your problem? |
I have tried to create a minimal example. Writing the example, I have realised that the problem arises when there are several blocks. The Copy to clipboard plugin is not involved. |
I see the problem: The problem is The real problem is that Prism tries to highlight that code block in the first place. This is because the CSS selector we use works on substrings and not CSS classes. That's a bug. I'll file a separate issue for this (#3364). Does this explain your problem? |
Yes, thank you very much for your explanation. |
Glad to see that your issue has been resolved!
Yes. Pretty much all plugins have a way to turn them off for specific code blocks. |
Information:
Description
I have updated prism.js from version 1.25 into 1.27 (with Copy to Clipboard plugin) and prism does not work properly now.
The html source code of my pages is like this:
If I use the prism version 1.25 I downloaded last September, this code is shown in the Firefox code inspector like this:
But if I use prism version 1.27, this code is shown in the Firefox code inspector like this:
I you need aditional information or file samples, please ask for them and I would provide them the best I can.
Thanking you in advance,
Bartolome Sintes
The text was updated successfully, but these errors were encountered: