Gatsby-plugin-mdx transformation of GraphQL fields #37471
-
With versions of Gatsby-plugin-mdx prior to v4 we were able to use field transformation of GraphQL nodes. I retrieve my MDX content from my CMS (strapi), and rendered them using this functionality and it worked perfectly. With v4+ releases, the plugin switched to file based only MDX, which makes it quite harder to achieve this. Are there any plans on reintegrating this functionality into the plugin again? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to circumvent this issue by using remark in combination with rehypeReact. With the rehypeReact processor I am able to assign custom components to certain html tags. For more information see https://blog.hao.dev/how-to-render-react-components-in-markdown-in-gatsby. |
Beta Was this translation helpful? Give feedback.
I was able to circumvent this issue by using remark in combination with rehypeReact. With the rehypeReact processor I am able to assign custom components to certain html tags. For more information see https://blog.hao.dev/how-to-render-react-components-in-markdown-in-gatsby.