Skip to content

Fix/feature copy to clipboard #2271 #2278

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Md-Mahir-Asef
Copy link

This pull request adds Copy button to all code snippets in the tailwindcss.com documentation. Here are some screen shorts.

Before:

Screenshot 2025-06-14 203340
Screenshot 2025-06-14 203401
Screenshot 2025-06-15 101209

After:

Screenshot 2025-06-14 203044
Screenshot 2025-06-14 203117
Screenshot 2025-06-14 203218

Copy link

vercel bot commented Jun 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2025 3:29pm

@rozsazoltan
Copy link
Contributor

Okay, but with this, we're also copying the Shiki comments to the clipboard, and it takes more extra work to achieve the desired result - as you've seen in the previous PRs.

@Md-Mahir-Asef
Copy link
Author

Md-Mahir-Asef commented Jun 15, 2025

Dear sir, thanks to address my issue. I will try to resolve the issue. Have a good day!

@Md-Mahir-Asef
Copy link
Author

Dear Sir, my code no longer copies the Shiki comments to the clipboard.

@rozsazoltan
Copy link
Contributor

I don't think this covers all comments and all cases - perhaps the other PR had the same solution?

@Md-Mahir-Asef
Copy link
Author

I have tested all the code examples in the documentation as thoroughly as possible and obtained the correct output in each case. I would be grateful if you could kindly point out any specific case that I may have overlooked.

@rozsazoltan
Copy link
Contributor

For example, here you remove an empty line:

Or, in the case of diffs, you also copy the deleted lines to the clipboard.

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

Successfully merging this pull request may close these issues.

2 participants