-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math blocks in gatsby-starter-minimal-blog #456
Comments
Thank you for opening this! As laid out in the theme options you can pass in the option This way you'll disable this whole block: gatsby-themes/themes/gatsby-theme-minimal-blog-core/gatsby-config.js Lines 23 to 48 in 4e71c90
Then in your own {
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
remarkPlugins: [require(`remark-math`)],
rehypePlugins: [require(`rehype-katex`)]
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 960,
quality: 90,
linkImagesToOriginal: false,
},
},
],
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 960,
quality: 90,
linkImagesToOriginal: false,
},
},
],
},
} This way you defined your own instance of |
First of all, thanks for you templates, they are wonderful!
I am trying to use the math block functionality from mdx in
gatsby-starter-minimal-blog
. The problem is, I believe, that the mdx settings are insidegatsby-starter-minimal-blog-core
and those can't be shadowed as usual; since shadowing only works for files inside thesrc
folder of the theme andgatsby-config.js
is in the root folder of the theme.Trying to configure it in
gatsby-config
in the root folder as per this, does not work, I guess because it's somehow conflicting withgatsby-starter-minimal-blog-core
.How should I add this functionality in this template? Or, in general, what is the correct way to add remark/rehype plugins?
Thanks.
The text was updated successfully, but these errors were encountered: