rehype-prism icon indicating copy to clipboard operation
rehype-prism copied to clipboard

How to enable options, like line-numbers

Open evantahler opened this issue 4 years ago • 4 comments

How can we pass class names to the final HTML element, like in https://prismjs.com/plugins/line-numbers/

evantahler avatar Oct 13 '20 22:10 evantahler

I have the same question

raulfdm avatar Oct 18 '20 16:10 raulfdm

+1 would appreciate any insight into this

helloworld avatar Feb 01 '21 19:02 helloworld

This seems to be a limitation of the underlying library: https://github.com/wooorm/refractor#plugins

helloworld avatar Feb 02 '21 06:02 helloworld

@helloworld there is any good option like this but with linue numbers and copy button?

something like this

Captura de Tela 2022-08-09 às 19 17 13

allangrds avatar Aug 09 '22 22:08 allangrds