mdx-module
mdx-module copied to clipboard
Reading YAML frontmatter in .mdx files
Hello!
I hope this is the right forum and format to ask this question in. I'm currently building a Nuxt blog and making use of the @nuxtjs/mdx
module. Everything is working fine except for my front matter block I have in one of my test blog posts. When it renders in the browser, it appears as elements (h1 and p) on the page when I know it shouldn't be and should be used as metadata.
I was wondering if there was an established way of handling something like YAML in .mdx files? I've found plugins out in the wild but for gatsby, and nothing specifically for Nuxt.
Any and all assistance/guidance would be very much appreciated! :D