Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading YAML frontmatter in .mdx files #33

Open
TCRodriguez opened this issue Oct 29, 2021 · 0 comments
Open

Reading YAML frontmatter in .mdx files #33

TCRodriguez opened this issue Oct 29, 2021 · 0 comments

Comments

@TCRodriguez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant