MDX: Incompatible remark plugins #25066
Replies: 2 comments
-
I've stumbled onto this using just mdx and rehype-mathjax. The problem shows up as all the generated html having |
Beta Was this translation helpful? Give feedback.
-
I do not know if this is the correct place for this, but using |
Beta Was this translation helpful? Give feedback.
-
Presently,
gatsby-plugin-mdx
takes an optional array ofremarkPlugins
. While this is meant to support all remark compatible plugins there are situations where it does not and it breaks MDX support in a site entirely.Solving this is likely a multipronged approach. There are specific, popular plugins that need to always work and require test coverage to validate that moving forward. For other plugins it may make sense to ignore them with a warning and continue to allow the site to build.
Currently exploring potential resolutions.
Related bugs/issues
Beta Was this translation helpful? Give feedback.
All reactions