gatsby-reactdown
gatsby-reactdown copied to clipboard
gatsby-reactdown
This is an example repository demonstrating how to use reactdown with gatsby.
How this works together:
-
Modify the webpack config to include reactdown. This can be done using gatsby's
modifyWebpackConfigAPI. -
Add a
.reactdownfile 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
wrapperused 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 🎉