Skip to content

Commit

Permalink
Merge pull request #42 from MehakFatima24/fix/fix-crashing-stories-on…
Browse files Browse the repository at this point in the history
…-adding-rehype-plugins

Refactor rehypePlugins configuration
  • Loading branch information
ndelangen authored Apr 28, 2023
2 parents 0ea94db + d3e789f commit 2fa8864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ function getCompilerOptionsAndContext(
return {
options: {
providerImportSource: '@mdx-js/react',
rehypePlugins: [[plugin, context]],
...mdxCompileOptions,

rehypePlugins: [...(mdxCompileOptions?.rehypePlugins || []), [plugin, context]],
// preserve the JSX, we'll deal with it using babel
jsx: true,
},
Expand Down

0 comments on commit 2fa8864

Please sign in to comment.