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

保存 vue 文件,md文件 不会实时更新,需要手动保存md文件 #7

Open cjfff opened 4 years ago

cjfff commented 4 years ago

版本 markdown-it-vuese 0.4.0 vuepress 1.4.0

描述一下 bug 行为跟这个链接的一致...https://github.com/BuptStEve/markdown-it-vuese/issues/3

BuptStEve commented 4 years ago

回头我看看

BuptStEve commented 4 years ago

感觉是这里这个缓存的问题,试了下官方的 code snippet 也失去同步了...

https://github.com/vuejs/vuepress/blob/a6ae5082a709c3aefc89cd9d8c9ba464f6f52179/packages/%40vuepress/markdown-loader/index.js#L37

cjfff commented 4 years ago

@BuptStEve

目前 vuepress 生成 cache 时候用的 内容 会包含 vuese 生成的注释吗?

源码部分看了一下,缓存的标记规则是 hash(file + src), src 如果是文件内容的话,应该是会更新才对

BuptStEve commented 4 years ago

文件指的是 md 文件,md 文件没变化,所以读的缓存