Skip to content

Commit 55b2330

Browse files
Bump next-mdx-remote from 3.0.8 to 4.2.1 (#417)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anderson Banihirwe <[email protected]>
1 parent 81aa6e7 commit 55b2330

File tree

4 files changed

+841
-31
lines changed

4 files changed

+841
-31
lines changed

next.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const withMDX = nextMDX({
88
rehypePlugins: [rehypeSlug],
99
// If you use `MDXProvider`, uncomment the following line.
1010
providerImportSource: "@mdx-js/react",
11+
format: 'mdx',
1112
},
1213
})
1314

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@emotion/styled": "^11.10.5",
2424
"@fontsource/inter": "^4.5.14",
2525
"@giscus/react": "^2.2.6",
26-
"@mdx-js/loader": "^1.6.22",
27-
"@mdx-js/react": "^1.6.22",
26+
"@mdx-js/loader": "^2.1.5",
27+
"@mdx-js/react": "^2.1.5",
2828
"@next/mdx": "^13.0.5",
2929
"apexcharts": "3.36.3",
3030
"d3": "^7.8.0",
@@ -33,7 +33,7 @@
3333
"framer-motion": "^8.4.3",
3434
"gray-matter": "^4.0.3",
3535
"next": "^13.1.2",
36-
"next-mdx-remote": "^3.0.8",
36+
"next-mdx-remote": "^4.2.1",
3737
"react": "^18.2.0",
3838
"react-apexcharts": "^1.4.0",
3939
"react-dom": "^18.2.0",

src/pages/blog/[id].js

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export async function getStaticProps({ params }) {
121121
mdxOptions: {
122122
remarkPlugins: [],
123123
rehypePlugins: [rehypeSlug],
124+
format: 'mdx',
124125
},
125126
})
126127

0 commit comments

Comments
 (0)