diff --git a/src/node/markdown/plugins/snippet.ts b/src/node/markdown/plugins/snippet.ts index 091818be..d1a9e8a7 100644 --- a/src/node/markdown/plugins/snippet.ts +++ b/src/node/markdown/plugins/snippet.ts @@ -161,7 +161,7 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => { includes.push(src) } - const isAFile = fs.lstatSync(src).isFile() + const isAFile = fs.statSync(src).isFile() if (!fs.existsSync(src) || !isAFile) { token.content = isAFile ? `Code snippet path not found: ${src}`