mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Output frontmatter id as integer
This commit is contained in:
@@ -83,6 +83,9 @@ async function loadMarkdownFilePromise(post) {
|
||||
// array of one or more strings
|
||||
outputValue = value.reduce((list, item) => `${list}\n - "${item}"`, '');
|
||||
}
|
||||
} else if (Number.isInteger(value)) {
|
||||
// output unquoted
|
||||
outputValue = value.toString();
|
||||
} else if (value instanceof luxon.DateTime) {
|
||||
if (shared.config.customDateFormatting) {
|
||||
outputValue = value.toFormat(shared.config.customDateFormatting);
|
||||
|
||||
Reference in New Issue
Block a user