Skip to content

Commit f186901

Browse files
committedSep 17, 2023
fix(build): allow using symlinks with code snippets
closes #1617
1 parent e99aaad commit f186901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/markdown/plugins/snippet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => {
161161
includes.push(src)
162162
}
163163

164-
const isAFile = fs.lstatSync(src).isFile()
164+
const isAFile = fs.statSync(src).isFile()
165165
if (!fs.existsSync(src) || !isAFile) {
166166
token.content = isAFile
167167
? `Code snippet path not found: ${src}`

0 commit comments

Comments
 (0)
Please sign in to comment.