March 21, 2022 • ☕️ 1 min read
npm install --save gatsby-transformer-remark gatsby-remark-prismjs gatsby-remark-prismjs-copy-button
NOTE: You MUST put gatsby-remark-prismjs-copy-button
before gatsby-remark-prismjs
in plugins
array.
module.exports = {
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-prismjs-copy-button`,
`gatsby-remark-prismjs`,
],
},
},
],
};