We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c21b3 commit ee78eebCopy full SHA for ee78eeb
src/index.js
@@ -90,7 +90,8 @@ function createPlugin() {
90
const possibleThemes = await getPossibleThemes(
91
theme,
92
await cache.get('themes'),
93
- markdownNode.fileAbsolutePath ? path.dirname(markdownNode.fileAbsolutePath) : null,
+ // Node could be sourced from something other than a File node
94
+ markdownNode.fileAbsolutePath ? path.dirname(markdownNode.fileAbsolutePath) : undefined,
95
markdownNode,
96
node,
97
languageName,
0 commit comments