mapbox / rehype-prism

rehype plugin to highlight code blocks in HTML with Prism (via refractor)
MIT License
178 stars 24 forks source link

How to enable options, like line-numbers #17

Open evantahler opened 3 years ago

evantahler commented 3 years ago

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

raulfdm commented 3 years ago

I have the same question

helloworld commented 3 years ago

+1 would appreciate any insight into this

helloworld commented 3 years ago

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

allangrds commented 2 years ago

@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