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

Copy Code Using Prism Plugin #406

FriendlyUser opened this issue Sep 2, 2019 · 2 comments · Fixed by #450


Copy link

commented Sep 2, 2019

Issuehunt badges

Feature request

Would like to somehow enable prism configuration from the saber plugin. Not sure if this is possible already, but documentation isn't clear.

What problem does this feature solve?

Allow people to copy code from page and allow saber to act as a solid documentation framework.

What does the proposed API look like?

Should let the user specify to let copy code to clipboard, should look along the lines of

```js {lineNumbers:true,highlightLines:['2-5'],clipboard: true}
text: 'A page',
slug: 'a-page',
level: 1
text: 'A section',
slug: 'a-section',
level: 2
text: 'Another section',
slug: 'another-section',
level: 3

How should this be implemented in your opinion?

Through the plugin api.

Are you willing to work on this yourself?


IssueHunt Summary

saltysugar saltysugar has been rewarded.

Backers (Total: $50.00)

Submitted pull Requests


IssueHunt has been backed by the following sponsors. Become a sponsor


This comment has been minimized.

Copy link

commented Sep 9, 2019

@issuehunt has funded $50.00 to this issue.

@saltysugar saltysugar referenced this issue Sep 14, 2019
3 of 10 tasks complete

@egoist egoist closed this in #450 Sep 14, 2019


This comment has been minimized.

Copy link

commented Sep 14, 2019

@egoist has rewarded $35.00 to @saltysugar. See it on IssueHunt

  • 💰 Total deposit: $50.00
  • 🎉 Repository reward(20%): $10.00
  • 🔧 Service fee(10%): $5.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.