DEV Community

Discussion on: Building an RSS Feed in Nuxt with Nuxt/Content

Collapse
 
seblandwehr profile image
Sebastian Landwehr

In case someone needs a drop-in solution for the HTML generation, I just wrote nuxt-content-body-html. It adds a doc.bodyHtml field to all @nuxt/content documents containing the HTML code. Also, it uses the native markdown pipeline from @nuxt/content. Just add it before @nuxt/content in your module config like so:

export default {
  modules: [
    'nuxt-content-body-html',
    '@nuxt/content',
  },
}
Enter fullscreen mode Exit fullscreen mode

See the README for details.