BuptStEve / markdown-it-vuese

📖 Vuese plugin for markdown-it markdown parser
https://buptsteve.github.io/markdown-it-vuese
MIT License
16 stars 8 forks source link

bug: source file and html are out of sync #3

Closed BuptStEve closed 4 years ago

BuptStEve commented 5 years ago

Version Version 0.2.2

Describe the bug After modifying the source file, the content of the page does not refresh.

The temporary solution is to save the corresponding markdown file.

To Reproduce Steps to reproduce the behavior:

  1. use it with vuepress
  2. run vuepress dev
  3. modify source file, like foo.vue, and save it
  4. out of sync

Expected behavior After modifying the source file, we should get a new content.

Additional context It's the same problem with Import Code Snippets

https://github.com/vuejs/vuepress/issues/1309

shigma commented 5 years ago

You can try env.loader.addDependency, it will be a new API invented by vuepress v1.0.0-alpha.40.

PR

BuptStEve commented 5 years ago

You can try env.loader.addDependency, it will be a new API invented by vuepress v1.0.0-alpha.40.

PR

Good job!