Skip to content
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

Closed
liyuj opened this issue Aug 31, 2019 · 5 comments
Closed

Can add a copy button to the code block? #1823

liyuj opened this issue Aug 31, 2019 · 5 comments
Labels
complexity: medium Medium complexity type: feature request Request to add a new feature

Comments

@liyuj
Copy link

liyuj commented Aug 31, 2019

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.

@flozero
Copy link
Collaborator

flozero commented Sep 6, 2019

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 flozero added complexity: medium Medium complexity type: feature request Request to add a new feature labels Sep 6, 2019
@ChetanGoti
Copy link

Based on discussions at #703, You can use @dovyp/vuepress-plugin-clipboard-copy till than.

  • Add "@dovyp/vuepress-plugin-clipboard-copy": "^1.0.0-alpha.7" in package.json
  • Add it as plugin in config.js: ['@dovyp/vuepress-plugin-clipboard-copy', true]

@liyuj
Copy link
Author

liyuj commented Sep 11, 2019 via email

@kefranabg
Copy link
Collaborator

@liyuj executing npm i @dovyp/vuepress-plugin-clipboard-copy works well for me.

@liyuj
Copy link
Author

liyuj commented Sep 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: medium Medium complexity type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

4 participants