DavidCouronne / gridsome-plugin-remark-prismjs-all

Syntax highlighting for Gridsome with PrismJS
https://kind-elion-23889d.netlify.com/demo-gridsome-plugin-remark-prismjs-all/
MIT License
12 stars 1 forks source link

add class name for inline blocks #8

Closed scrambldchannel closed 3 years ago

scrambldchannel commented 3 years ago

Hi

As mentioned in https://github.com/DavidCouronne/gridsome-plugin-remark-prismjs-all/issues/7, here is a little PR to give a different class name to inline code blocks. Instead of language-${lang} it sets it to language-inline-${lang}. The existing CSS in the prism theme will still be applied but can be overridden if desired.

Let me know what you think, my js is a bit rough so I appreciate there may be a better solution!

Thanks again Alex