DEV Community

loading...

Discussion on: Gatsby - Switching from Markdown to MDX

Collapse
chrisotto profile image
Chris Otto Author • Edited

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.

Gatsby Plugin MDX Doc

MDX JS Syntax Highlighting Guide

Collapse
boywithsilverwings profile image
Agney Menon

oh! you meant inside the markdown files and not the website itself?