storybook-addon-html icon indicating copy to clipboard operation
storybook-addon-html copied to clipboard

Request: config parameters for react-syntax-highlighter (if possible)

Open dgonzalezr opened this issue 2 years ago • 1 comments

Hi 👋🏼

I wonder if we could have some argument properties under the highlighter config to customize react-syntax-highlighter. Something that allows us to choose which style to apply from hightlight.js, eg:

highlighter: {
  wrapLines: true,
  style: 'atomOneDark'
},

CleanShot 2023-01-06 at 16 58 54

Thank you.

dgonzalezr avatar Jan 06 '23 14:01 dgonzalezr

Sounds like a good idea. Would you be able to make a PR for that?

jeanfredrik avatar Jan 30 '23 12:01 jeanfredrik