File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ export async function pageProps({params}) {
6868 {
6969 parseFrontmatter : false ,
7070 scope : { data } ,
71+ // Allow JS expressions (e.g. JSX-style inline styles) in MDX content.
72+ // blockJS is a top-level serialize option in next-mdx-remote v6.
73+ blockJS : false ,
7174 mdxOptions : {
7275 mdExtensions : [ ] ,
7376 mdxExtensions : [ '.md' , '.mdx' ] ,
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ export async function pageProps({ params }) {
7272 {
7373 parseFrontmatter : false ,
7474 scope : { data } ,
75+ // Allow JS expressions (e.g. JSX-style inline styles) in MDX content.
76+ // blockJS is a top-level serialize option in next-mdx-remote v6.
77+ blockJS : false ,
7578 mdxOptions : {
7679 mdExtensions : [ ] ,
7780 mdxExtensions : [ '.md' , '.mdx' ] ,
You can’t perform that action at this time.
0 commit comments