This is an example repository demonstrating how to use reactdown with gatsby.
-
Modify the webpack config to include reactdown. This can be done using gatsby's
modifyWebpackConfig
API. -
Add a
.reactdown
file registering your components with reactdown. The documentation for this is almost nonexistent, but the documentation site in progress serves as an excelent example. -
Modify the
wrapper
used by gatsby for markdown files. This can be done by creating a file atwrappers/md.js
.
Your markdown files are now a bunch of React components 🎉