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 882744a commit d54005fCopy full SHA for d54005f
src/utils.ts
@@ -9,6 +9,8 @@ export const getImageSrc = (activeFilePath: string, plugin: FrontmatterImagePlug
9
.map(key => frontmatter[key])
10
.find(value => !!value);
11
12
+ if (!rawValue) return;
13
+
14
// Extract image from wikilink format: [[img.jpg|...]] or [[img.jpg]]
15
const wikilinkMatch = rawValue.match(/^\[\[([^|\]]+)(?:\|[^\]]+)?\]\]$/);
16
if (wikilinkMatch) {
0 commit comments