Fixes tags not being added when listed as an array in frontmatter

pull/674/head
Zef Hemel 2024-01-28 13:42:25 +01:00
parent b443192c1b
commit 744badaf81
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ export async function extractFrontmatter(
if (typeof data.tags === "string") {
tags.push(...(data.tags as string).split(/,\s*|\s+/));
}
if (Array.isArray(data.tags)) {
tags.push(...data.tags);
}
if (options.removeKeys && options.removeKeys.length > 0) {
let removedOne = false;