Skip to content

Conversation

@kdcokenny
Copy link
Contributor

This pull request introduces a copy button to markdown code blocks within the documentation.

image

I often find myself navigating to the GitHub source dificuldades to copy markdown snippets. Inspired by the helpful "copy to clipboard" functionality found in documentation sites like Cloudflare's (see example: https://developers.cloudflare.com/workers/vite-plugin/), this change aims to improve the developer experience by making it easier and quicker to copy markdown directly from the website.

This should provide a small but significant convenience for users interacting with the documentation.

@kdcokenny
Copy link
Contributor Author

Any chance a maintainer can take a look at this?

@brookslybrand
Copy link
Contributor

Hey thanks @kdcokenny! This is a great feature idea

I probably just want to tweak the style slightly, so I'll talk with @tquirino about that

@kdcokenny
Copy link
Contributor Author

Love to hear it! 🚀

@brookslybrand
Copy link
Contributor

Alright @kdcokenny, thanks so much for starting this up!

We've gone ahead and created an issue with some designs: #187

If you'd like tackle this I'm more than happy to let you keep iterating and shepherd this in. Otherwise, I'll gladly take up this PR and wrap up the refactor

Let me know if you have any questions!

@MichaelDeBoey MichaelDeBoey changed the title feat: Add markdown copy button for convenience feat: add "copy page" button Jun 10, 2025
@MichaelDeBoey MichaelDeBoey linked an issue Jun 10, 2025 that may be closed by this pull request
@brookslybrand brookslybrand force-pushed the add-markdown-copy-button branch from b2f4be0 to 813ce63 Compare June 11, 2025 22:17
@brookslybrand brookslybrand merged commit d1f4446 into remix-run:main Jun 12, 2025
1 check passed
@kdcokenny kdcokenny deleted the add-markdown-copy-button branch June 17, 2025 01:09
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.

Add markdown copy feature

2 participants