Skip to content

Commit 70c21b3

Browse files
authored
Merge pull request #81 from runlyio/filepathfix
Fix issue when using code fences in nodes not sourced from filesystem
2 parents 66e4545 + 6d8dfe9 commit 70c21b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function createPlugin() {
9090
const possibleThemes = await getPossibleThemes(
9191
theme,
9292
await cache.get('themes'),
93-
path.dirname(markdownNode.fileAbsolutePath),
93+
markdownNode.fileAbsolutePath ? path.dirname(markdownNode.fileAbsolutePath) : null,
9494
markdownNode,
9595
node,
9696
languageName,

0 commit comments

Comments
 (0)