Skip to content

Commit

Permalink
Merge pull request #175 from browniefed/bump_mdx_bundler
Browse files Browse the repository at this point in the history
Bump to latest mdx bundler
  • Loading branch information
schickling committed Apr 13, 2022
2 parents c4c4703 + aa08585 commit 29b8d35
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 618 deletions.
2 changes: 1 addition & 1 deletion packages/@contentlayer/core/package.json
Expand Up @@ -35,7 +35,7 @@
"date-fns": "2.x",
"esbuild": "0.11.x || 0.12.x || 0.13.x || 0.14.x",
"gray-matter": "^4.0.3",
"mdx-bundler": "^8.0.1",
"mdx-bundler": "^9.0.0",
"rehype-stringify": "^9.0.3",
"remark-frontmatter": "^4.0.1",
"remark-parse": "^10.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/core/src/mdx.ts
Expand Up @@ -29,7 +29,7 @@ export const bundleMDX = ({
const cwd = cwd_ ?? getCwdFromContentDirPath()

const mdxOptions: BundleMDXOptions<any> = {
xdmOptions: (opts) => {
mdxOptions: (opts) => {
opts.rehypePlugins = [...(opts.rehypePlugins ?? []), ...(rehypePlugins ?? [])]
opts.remarkPlugins = [...(opts.remarkPlugins ?? []), ...(remarkPlugins ?? [])]
return opts
Expand Down

0 comments on commit 29b8d35

Please sign in to comment.