Skip to content

Commit

Permalink
fix: tool yarn content move converts double quotes to single quotes…
Browse files Browse the repository at this point in the history
… in title (#8623)
  • Loading branch information
OnkarRuikar authored May 5, 2023
1 parent 7d9c2cb commit 7da24a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7da24a4

Please sign in to comment.