Skip to content

Reading YAML frontmatter in .mdx files #33

Open
@TCRodriguez

Description

@TCRodriguez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions