Skip to content

feat(theme): Make it possible to mark elements to be excluded when copying#2512

Merged
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
Karibash:feature/copy-ignore
Aug 27, 2025
Merged

feat(theme): Make it possible to mark elements to be excluded when copying#2512
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
Karibash:feature/copy-ignore

Conversation

@Karibash
Copy link
Copy Markdown
Contributor

Summary

To prevent the popup elements added by Twoslash from being copied along with the code, we’ve made it possible to mark elements that should be excluded during copying.

Related Issue

#574

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 26, 2025

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 26, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit bba7364
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/68adc90e0c0adf0008a9628b
😎 Deploy Preview https://deploy-preview-2512--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@SoonIter
Copy link
Copy Markdown
Member

This escape hatch is acceptable to me. Currently it is a private API, and we cannot guarantee that the class name will always remain unchanged (probably). :D We can also not include it in the document.

@SoonIter SoonIter merged commit b444a8d into web-infra-dev:main Aug 27, 2025
9 checks passed
@Karibash Karibash deleted the feature/copy-ignore branch August 27, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants