karolis-sh / gatsby-mdx

Utilities to work with MDX and netlify-cms in Gatsby sites
MIT License
60 stars 8 forks source link

Add components override mechanics via MDXProvider #22

Open karolis-sh opened 5 years ago

damassi commented 5 years ago

@buz-zard - Can you elaborate on this issue a bit? (I'm evaluating possible solutions to the netlify-cms + mdx issue)

karolis-sh commented 5 years ago

This issue is for gatsby-transformer-mdx. I had an idea that you'd be able to define defaultComponents and the transformer would pass these to MDXProvider. You can always achieve this via having built the layout with MDXProvider, so it's more for convenience.

Regards netlify cms, the components can already be passed via the props - check the readme.