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 {
|
} else {
|
||||||
// single string value
|
// single string value
|
||||||
const escapedValue = (value || '').replace(/"/g, '\\"');
|
const escapedValue = (value || '').replace(/"/g, '\\"');
|
||||||
outputValue = `"${escapedValue}"`;
|
if (escapedValue.length > 0) {
|
||||||
|
outputValue = `"${escapedValue}"`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outputValue !== undefined) {
|
if (outputValue !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user