mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Fix for coverImage empty string
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user