Skip to content

Commit 9eb5be7

Browse files
committed
Add quotes around contributors
1 parent 98dcbaa commit 9eb5be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function getFrontMatter(page: NotionPage): string {
272272
if (page.keywords) frontmatter += `keywords: [${page.keywords}]\n`;
273273
frontmatter += `last_edited: ${(page.metadata as any).last_edited_time as string}\n`
274274
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions,@typescript-eslint/no-unsafe-return
275-
frontmatter += `contributors: ${(page as any).metadata.properties.Contributors.rich_text.map(((x: any) => x.text.link != undefined ? `[${x.text.content}](${x.text.link.url})` : x.text.content )).join('') as string}\n`;
275+
frontmatter += `contributors: "${(page as any).metadata.properties.Contributors.rich_text.map(((x: any) => x.text.link != undefined ? `[${x.text.content}](${x.text.link.url})` : x.text.content )).join('') as string}"\n`;
276276

277277
frontmatter += "---\n";
278278
return frontmatter;

0 commit comments

Comments
 (0)