Code blocks syntax highlighting works out of the box with normal markdown files. But yeah in order to implement the PrismJS plugin in gatsby-plugin-mdx I added the gatsby-remark-prismjs plugin to the gatsbyRemarkPlugins options node. You could create your own with prism-react-renderer too. I just went with the plugin to start to get over to MDX quicker.
Code blocks syntax highlighting works out of the box with normal markdown files. But yeah in order to implement the PrismJS plugin in
gatsby-plugin-mdx
I added thegatsby-remark-prismjs
plugin to thegatsbyRemarkPlugins
options node. You could create your own with prism-react-renderer too. I just went with the plugin to start to get over to MDX quicker.Gatsby Plugin MDX Doc
MDX JS Syntax Highlighting Guide
oh! you meant inside the markdown files and not the website itself?