Closed wout-junius closed 1 year ago
Hi!
For your specific "localImage" I'd recommend using https://www.gatsbyjs.com/plugins/gatsby-remark-images/.
If you want to pass props
to your MDX content you can pass that to the <MDXProvider />
: https://mdxjs.com/packages/react/#props
This wasn't any built-in thing to gatsby-plugin-mdx but a very specific way of doing things. If your only use case is local images, I'd just use gatsby-remark-images.
Preliminary Checks
Description
As found in this documentation we could use the html images in MDX by setting the localImages in the MDXRenderer. But since aftedr v4 this renderer does not excist i canot find a way, or even see any reference on how to in the documentations
What is the new way to do this, and where is the documentation page for it
as seen on the page: https://www.gatsbyjs.com/blog/mdx-embedded-gatsby-image/
Reproduction Link
https://github.com/wout-junius/GatsbyJS_Image_problem
Steps to Reproduce
Expected Result
Shows image and no errorpage
Actual Result
Shows errorpage:
Environment
Config Flags
No response