Skip to content

Commit

Permalink
fix(document): do not break the line of the metadata (#10129)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Mar 18, 2024
1 parent 41c24bc commit 789aa15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/document.ts
Expand Up @@ -145,6 +145,7 @@ export function saveFile(
fs.mkdirSync(folderPath, { recursive: true });

const combined = `---\n${yaml.dump(saveMetadata, {
lineWidth: -1, // do not break lines
quotingType: '"',
})}---\n\n${rawBody.trim()}\n`;
fs.writeFileSync(filePath, combined);
Expand Down

0 comments on commit 789aa15

Please sign in to comment.