ChristopherBiscardi / gatsby-mdx

Gatsby+MDX • Transformers, CMS UI Extensions, and Ecosystem Components for ambitious projects
https://gatsby-mdx.netlify.com/
715 stars 100 forks source link

Remark-Sectionize doesn't work after the upgrade to Mdx 1x #409

Closed motleydev closed 5 years ago

motleydev commented 5 years ago

Describe the bug After upgrading to the latest version of gatsby-mdx (1.0 support), remark-sectionize creates transform errors that look like the renderer isn't parsing content inside of the

tags.

To Reproduce Run gatsby develop on this repo

Expected behavior I'd expect the output html to wrap the h1 tag and the following paragraph tag into a wrapping section tag.

Additional context This worked with the previous version of mdx. The error is the same whether using the gatsbyRemarkPlugins or the remarkPlugins.