"Complex" Katex formulas can't be rendered using MDX #1329
-
I don't know the exact terms to describe it, but "complex" Katex formulas prevent MDX from rendering. (Feel free to change the title into something more specific) I've figured out a workaround by passing the formula as a string to a custom component that runs the string through There is a minimal reproducible example here with instructions on how to make it fail as well as the workaround in action. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Sorry you run into some trouble @nikoladev Looking to further reduce the problem I tried
|
Beta Was this translation helpful? Give feedback.
Sorry you run into some trouble @nikoladev
Looking to further reduce the problem I tried
Katex + MDX 1 runtime: https://codesandbox.io/s/katex-example-mdx-1-937f6
and Katex + MDX 2 runtime: https://codesandbox.io/s/katex-example-mdx-2-em1jg
Both worked 🤔
gatsby-plugin-mdx
has forked parts of the MDX pipeline, which has been problematic in the past.It's managed by the Gatsby team independent of the MDX team https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-mdx
I suspect, this has something to do with
gatsby-plugin-mdx