fix(build): allow using symlinks with code snippets

closes #1617
pull/2982/head
Divyansh Singh 1 year ago
parent e99aaad9cf
commit f186901a51

@ -161,7 +161,7 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => {
includes.push(src) includes.push(src)
} }
const isAFile = fs.lstatSync(src).isFile() const isAFile = fs.statSync(src).isFile()
if (!fs.existsSync(src) || !isAFile) { if (!fs.existsSync(src) || !isAFile) {
token.content = isAFile token.content = isAFile
? `Code snippet path not found: ${src}` ? `Code snippet path not found: ${src}`

Loading…
Cancel
Save