nextra
nextra copied to clipboard
Copy to Clipboard action for codeblocks
Problem
Currently, if someone wants to copy the codeblock contents they have to manually select the content and press Ctrl-c. This could be cumbersome to do if the codeblock is large.
Solution
Add a Copy To Clipboard
action; something similar to github's.
Good thing to have! We'll need a syntax for that, maybe:
```js copy
It can be used together with other options:
```js copy showLineNumbers
Ohh! I didn't thought about it earlier but making it opt-in would be cool. Also I agree with your syntax suggestion
```js copy
Yeah, and we can have theme config option to turn this option by default to true