Skip to content

Commit

Permalink
fix(build): allow using symlinks with code snippets
Browse files Browse the repository at this point in the history
closes #1617
  • Loading branch information
brc-dd committed Sep 17, 2023
1 parent e99aaad commit f186901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/snippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit f186901

Please sign in to comment.