Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
fix bug preventing some images with titles from rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingislost committed Nov 27, 2021
1 parent d159a5b commit d72753d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmd-fold-image.js
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@
title = mat[2] ? mat[2] : "";
if (title.charAt(0) === '"') title = title.substr(1, title.length - 2).replace(/\\"/g, '"');
}
return { url: url, title: title };
return { url: url?.trim(), title: title };
}
exports.ImageFolder = ImageFolder;
fold_1.registerFolder("image", exports.ImageFolder, true);

0 comments on commit d72753d

Please sign in to comment.