Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Question: replacing highlight.js #1077
In contrast, here's how it'd be handled by Prism:
So some questions:
I was an ignorant fool when I picked highlight.js over prism back in the day :-) v1 is now using prismjs e.g. https://www.gatsbyjs.org/docs/packages/gatsby-remark-prismjs/
I'm not sure if we want to replace highlight.js as a default though... as that'd mean a breaking change as people would have to switch out the CSS they're using plus it's possible that highlight.js is better than prismjs in some ways that some people prefer etc. I don't want to do any more breaking changes for 0.x as 1.0 is about ready and I'm conserving my limited resources for perfecting that and helping people move over.
This is one of the big downsides to webpack loaders that transformations are difficult to modularize and what Gatsby v1 for the most part corrects. Now it'd be trivial for someone to write a