diff --git a/content/document.ts b/content/document.ts index 3bcf5a5fe2ec..87bde22334f4 100644 --- a/content/document.ts +++ b/content/document.ts @@ -146,7 +146,9 @@ export function saveFile( const folderPath = path.dirname(filePath); fs.mkdirSync(folderPath, { recursive: true }); - const combined = `---\n${yaml.dump(saveMetadata)}---\n\n${rawBody.trim()}\n`; + const combined = `---\n${yaml.dump(saveMetadata, { + quotingType: '"', + })}---\n\n${rawBody.trim()}\n`; fs.writeFileSync(filePath, combined); }