From 3e8dd285b2c89d1c401d45d4b16d4d64f4a7783f Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Fri, 23 Feb 2024 13:07:20 -0500 Subject: [PATCH] Fix for coverImage empty string --- src/writer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/writer.js b/src/writer.js index 0346a0f..b782756 100644 --- a/src/writer.js +++ b/src/writer.js @@ -85,7 +85,9 @@ async function loadMarkdownFilePromise(post) { } else { // single string value const escapedValue = (value || '').replace(/"/g, '\\"'); - outputValue = `"${escapedValue}"`; + if (escapedValue.length > 0) { + outputValue = `"${escapedValue}"`; + } } if (outputValue !== undefined) {