gatsby-mdx icon indicating copy to clipboard operation
gatsby-mdx copied to clipboard

Add components override mechanics via MDXProvider

Open karolis-sh opened this issue 6 years ago • 2 comments

karolis-sh avatar Dec 26 '18 21:12 karolis-sh

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

damassi avatar Jan 23 '19 01:01 damassi

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.

karolis-sh avatar Jan 23 '19 06:01 karolis-sh