fix: generalize frontmatter parsing and coercing
This commit is contained in:
1 parent
b211d49922
commit
42ee069c1c
5 files changed
+90
-70
No files matched your search
@@ -318,7 +318,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||
}
|
||||
|
||||
tag = slugTag(tag)
|
||||
if (file.data.frontmatter && !file.data.frontmatter.tags.includes(tag)) {
|
||||
if (file.data.frontmatter?.tags?.includes(tag)) {
|
||||
file.data.frontmatter.tags.push(tag)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user