Closed o-az closed 4 months ago
UPDATE
You can already use the copy button plugin. Install through https://jsr.io:
npx jsr add @rehype-pretty/transformers pnpm dlx jsr add @rehype-pretty/transformers bunx jsr add @rehype-pretty/transformers yarn dlx jsr add @rehype-pretty/transformers
API docs: https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/transformers/README.md
Code examples: https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples
Live examples:
Soon it will be published on npm too :)
Take a look at this Shiki Transformer https://github.com/joshnuss/shiki-transformer-copy-button
UPDATE
You can already use the copy button plugin. Install through https://jsr.io:
API docs: https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/transformers/README.md
Code examples: https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples
Live examples:
Soon it will be published on npm too :)