-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Can add a copy button to the code block? #1823
Labels
Comments
Hello @liyuj thank's for your feature request it is relevant to have it. It can be a markdown it plugin or maybe more about prism. |
flozero
added
complexity: medium
Medium complexity
type: feature request
Request to add a new feature
labels
Sep 6, 2019
Based on discussions at #703, You can use
|
Hi,
npm i @dovyp/vuepress-plugin-clipboard-copy
Execute the above command and throw the following error
npm ERR! code ETARGET
npm ERR! notarget No matching version found for
@dovyp/vuepress-plugin-clipboard-copy@^1.0.0-alpha.7
npm ERR! notarget In most cases you or one of your dependencies are
requesting
npm ERR! notarget a package version that doesn't exist.
在 2019/9/11 下午9:03, Chetan Goti 写道:
…
Based on discussions at #703
<#703>, You can use
***@***.***/vuepress-plugin-clipboard-copy| till than.
* Add ***@***.***/vuepress-plugin-clipboard-copy": "^1.0.0-alpha.7" in
package.json
* Add it as plugin in config.js:
***@***.***/vuepress-plugin-clipboard-copy', true]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1823?email_source=notifications&email_token=ACGRBAVA5N7MTVHP2DFV6B3QJDUANA5CNFSM4ISSPED2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6OM24I#issuecomment-530369905>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACGRBAVXXCYMTNBBHX3T7K3QJDUANANCNFSM4ISSPEDQ>.
|
@liyuj executing |
Hi,
The reason has been found is the problem with the NPM mirror I use here.
The plug-in has been tested and can be used. No problem.
在 2019/9/21 下午8:42, Franck Abgrall 写道:
…
@liyuj <https://github.com/liyuj> executing |npm i
@dovyp/vuepress-plugin-clipboard-copy| works well for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1823?email_source=notifications&email_token=ACGRBASMZR6XB77J5VTO5DDQKYJB3A5CNFSM4ISSPED2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IRCFY#issuecomment-533795095>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACGRBAXPU5HMYY6ALDGDDOTQKYJB3ANCNFSM4ISSPEDQ>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature request
What problem does this feature solve?
This feature helps developers copy code fragments
What does the proposed API look like?
In the upper right corner of the code block, add a copy button.
How should this be implemented in your opinion?
When rendering code blocks, add a button.
Are you willing to work on this yourself?
Not very likely.
The text was updated successfully, but these errors were encountered: