Merge branch 'jackyzha0:v4' into main

This commit is contained in:
Miguel Pimentel 2023-09-26 08:42:57 -05:00 committed by GitHub
commit f471b18e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,11 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
data.tags = data.tag
}
// coerce title to string
if (data.title) {
data.title = data.title.toString()
}
if (data.tags && !Array.isArray(data.tags)) {
data.tags = data.tags
.toString()