-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
don't make plus-signs selectable #3578
Comments
Those these are not usually long snippets so manually deleting should not be a much of work. 👍 |
I was thinking that maybe <p><span style="user-select:none">+</span>document.body.removeChild(element);</p>
<p><span style="user-select:none">+</span>element = component();</p>
<p><span style="user-select:none">+</span>document.body.appendChild(element);</p> would be a good solution. I agree that it is not much work to manually remove the plus-signs but I think it is unnecessary and that the guides would be improved when the code can just be copied and pasted. |
@SimonSiefke It could be possible to target the |
Or render I think this issue can be closed as PrismJS/prism#2281 is merged? |
@DanielRuf That commit is not released in a new version PrismJS yet. Maybe we can keep this issue open if we do want to bring this feature into doc site. |
|
I've created a pull request here #3912 so anyone can check how it looks like now https://webpack-js-org-git-fork-chenxsan-feature-user-select-none-diff.webpack-docs.vercel.app/guides/asset-management/#loading-images. |
Expected behavior:
I can copy and paste the code, the plus-signs are not copied with the code.
Current behavior:
When I copy and paste the code, I manually need to remove each
+
because the the plus-signs are copied along with the code.The text was updated successfully, but these errors were encountered: