From 7da24a408ae8ea628feaf7e55b18d6f32b6a39ad Mon Sep 17 00:00:00 2001 From: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Fri, 5 May 2023 20:11:03 +0530 Subject: [PATCH] fix: tool `yarn content move` converts double quotes to single quotes in title (#8623) --- content/document.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }