We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c21aa commit 099d346Copy full SHA for 099d346
packages/@vuepress/markdown/lib/snippet.js
@@ -24,7 +24,7 @@ module.exports = function snippet (md, options = {}) {
24
const start = pos + 3
25
const end = state.skipSpacesBack(max, pos)
26
const rawPath = state.src.slice(start, end).trim().replace(/^@/, root)
27
- const filename = rawPath.split(/[{:\s]/).shift()
+ const filename = rawPath.split(/[{\s]/).shift()
28
const content = fs.existsSync(filename) ? fs.readFileSync(filename).toString() : 'Not found: ' + filename
29
const meta = rawPath.replace(filename, '')
30
0 commit comments