From d72753d70f6c0ad3f7b7e591a08237bd127018f4 Mon Sep 17 00:00:00 2001 From: NothingIsLost Date: Fri, 26 Nov 2021 20:49:40 -0800 Subject: [PATCH] fix bug preventing some images with titles from rendering --- src/hmd-fold-image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmd-fold-image.js b/src/hmd-fold-image.js index 17f0769..e9a2ab2 100644 --- a/src/hmd-fold-image.js +++ b/src/hmd-fold-image.js @@ -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);