mdx-module icon indicating copy to clipboard operation
mdx-module copied to clipboard

Reading YAML frontmatter in .mdx files

Open TCRodriguez opened this issue 3 years ago • 0 comments

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

TCRodriguez avatar Oct 29 '21 15:10 TCRodriguez