cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

Copy btn in code snippets will copy the `$` sign at the beginning of a command line

Open CarmenPopoviciu opened this issue 3 years ago • 1 comments

Example URL(s)

https://developers.cloudflare.com/workers/wrangler/get-started/ https://developers.cloudflare.com/workers/wrangler/commands/

Actual Behavior

Copying code snippets such as Screenshot 2022-08-09 at 13 42 29 will paste the command including the $ at the beginning of the command line. If pasted in the terminal, users will have to first remove that character in order to run the command

Expected Behavior

It would be nice if the $ sign is trimmed, so that users can run the copied command directly in the terminal

Additional information

No response

CarmenPopoviciu avatar Aug 09 '22 11:08 CarmenPopoviciu

Thanks for opening this. I am currently improving on this feature here. #5467 I will address this issue here as well

Ekwuno avatar Aug 09 '22 12:08 Ekwuno