-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hot reload doesn't work in conjunction with markdown-it-include plugin #1616
Comments
I can confirm that this issue still occurs in vuepress@latest |
Confirmed as well; this is quite a blocker for larger documentation sets, and unfortunately makes the |
I can confirm this is still an issue in 1.8.2 and I am pretty certain I know why. Even when you set up |
I simply forget to use build-in link extention in markdown files. So no need markdown-it-include plugin.
|
I think we're talking about two different things. You're talking about a markdown link, and they're talking about embedding content from a markdown file in another markdown file. For example, this file is one of several that re-use content from this partial. I've not commented on this issue but I've been watching it. I also experience this issue and would like to see it resolved. |
Actually the OP was talking about embedding code fragments in markdown files using the markdown-it plugin. When the embedded code changes, the generated p[ages should refresh to show the updated source code, but that doesn't happen. |
OK, embedded |
Sorry for the confusion, but I've realize my mistake and did some research. I think ulivz provide a possible soution here #222, using the Besides, I can confirm the issue exists. Using markdown-it-include with vuepress, I have to update the reference(like this line |
Bug report
When changing imported files supported via markdown-it-include reload isn't triggered
Steps to reproduce
Install markdown-it-include via
extendMarkdown
option inconfig.js
What is expected?
Hot reload should be triggered and files recompiled
What is actually happening?
Whenever I change content in a file that is being imported nothing happens.
I have also tried adding the imported files in the
extraWatchFiles
and the hot reload is triggered but it only refreshes the page without compiling.To be able to see the changes I have to hit save in the parent file (which cannot be an imported file by itself otherwise it won't work).
Other relevant information
1.0.0-alpha.47
, the following is the output ofnpx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: