We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I import code Snippets,It doesn't work as expected and show "Not Found: E"
I tried to clone your project and run it, it still doesn't show up as expected.
git clone https://github.com/vuejs/vuepress.git cd vuepress yarn yarn dev
http://localhost:8080/guide/markdown.html#import-code-snippets
Input
<<< @/test/markdown/fragments/snippet.js{2}
Output
Not Found: E
global ([email protected]) and local ([email protected])
show code snippets
The text was updated successfully, but these errors were encountered:
https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/markdown/lib/snippet.js#L27
It seems that vuepress delete all characters after :, which results in this problem.
:
Sorry, something went wrong.
099d346
Thanks
https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/markdown/lib/snippet.js#L27 It seems that vuepress delete all characters after :, which results in this problem.
I removed ":" but it still shows Not found: E
Not found: E
myProject/node_modules/vuepress/lib/markdown/snippet.js#27 const filename = rawPath.split(/[{\s]/).shift()
const filename = rawPath.split(/[{\s]/).shift()
What's more
I tried console.log(content) and the contents of the file can be read normally.
No branches or pull requests
Bug report
When I import code Snippets,It doesn't work as expected and show "Not Found: E"
I tried to clone your project and run it, it still doesn't show up as expected.
git clone https://github.com/vuejs/vuepress.git
cd vuepress
yarn
yarn dev
http://localhost:8080/guide/markdown.html#import-code-snippets
Import Code Snippets
Input
Output
Version
global ([email protected]) and local ([email protected])
Steps to reproduce
What is expected?
show code snippets
What is actually happening?
Not Found: E
Other relevant information
The text was updated successfully, but these errors were encountered: