hagnerd / gatsby-starter-blog-mdx

Live Demo
https://gatsby-starter-blog-mdx-demo.netlify.com
MIT License
67 stars 43 forks source link

Change to using mdx.html instead of body #21

Closed agneym closed 4 years ago

agneym commented 4 years ago

Using mdx.body returns the content that React renders. Returning this to as HTML content to RSS feed readers does not work. See current demo

Instead gatsby-plugin-mdx includes a field named html which is filled only during build.

To see this output on development, you will have to run:

gatsby build && gatsby serve
hagnerd commented 4 years ago

Hey @agneym thanks for pinging me! I'll give this a spin and merge it if everything seems to work still.

hagnerd commented 4 years ago

Looks good!