Adapt Next.js blog example for MDX #14975
Unanswered
jensmeindertsma
asked this question in
Help
Replies: 1 comment 1 reply
-
Take a look at next-mdx-remote which allows you to use mdx within |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community!
In this example blog posts are read from the file system at build time and build with
getStaticPaths
andgetStaticProps
. I want to use this example but I'd like to use MDX inside my blog posts. Does anyone have any advice on how to convert this example to use MDX?I understand from the example that it uses
remark
to parse the Markdown to a HTML string at build time. Can the same be done with@mdx-js/loader
?Please correct me if my understanding about MDX is fundamentally incorrect.
Beta Was this translation helpful? Give feedback.
All reactions