saberland/saber

Copy Code Using Prism Plugin #406

FriendlyUser posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

Feature request

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

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?

No


@issuehunt has funded $50.00 to this issue.


posted by issuehunt-app[bot] over 5 years ago

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

  • :moneybag: Total deposit: $50.00
  • :tada: Repository reward(20%): $10.00
  • :wrench: Service fee(10%): $5.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$50.00
Rewarded

Rewarded pull request

Recent activities

saltysugar was rewarded by egoist for saberland/saber# 406
over 5 years ago
egoist submitted an output to  saberland/ saber# 406
over 5 years ago