yuin / goldmark-highlighting

A Syntax highlighting extension for the goldmark markdown parser.
MIT License
100 stars 14 forks source link

Add CustomStyle configuration option #17

Closed stephenafamo closed 3 years ago

stephenafamo commented 3 years ago

Allows a user to directly pass a *chroma.Style struct instead of just the name of the already registered style.

This is useful for when the styles are dynamically generated and we do not want to have to register every variation of the style.

stephenafamo commented 3 years ago

Did not realize I had already created a merge request for this. I'll close this 😔 .