Skip to content

Commit 789aa15

Browse files
authored
fix(document): do not break the line of the metadata (#10129)
1 parent 41c24bc commit 789aa15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: content/document.ts

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export function saveFile(
145145
fs.mkdirSync(folderPath, { recursive: true });
146146

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

0 commit comments

Comments
 (0)