whitespace-se / storybook-addon-html

A Storybook addon that extracts and displays compiled syntax-highlighted HTML
Other
95 stars 44 forks source link

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

Closed dgonzalezr closed 6 months ago

dgonzalezr commented 1 year ago

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.

jeanfredrik commented 1 year ago

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