gregives/nuxt-markdown

Front Matter doesn't hot reload

TCroasdale opened this issue · 2 comments

The front matter of a markdown file doesn't hot reload when running nuxt in dev mode.
For example if I have post.md

---
title: example
---

# Title

Lorem Ipsum

and change the title field in the front matter, it will not update on the website without restarting the development server.

I can confirm this. Updating the content will reload but updating the frontmatter doesn't.

Hopefully, this should be an easy fix by using the watch property.