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) {