Skip to content

Commit

Permalink
update js-yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Nov 1, 2023
1 parent 27237d5 commit 8ed810c
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 147 deletions.
2 changes: 1 addition & 1 deletion lib/authors-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function modifyFile(fileContents, file) {
}

return `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;
}

module.exports.modifyFile = modifyFile;
2 changes: 1 addition & 1 deletion lib/automatic-new-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = class AutomaticNewTag extends BroccoliPlugin {
delete frontMatter.__content;

const fileContent = `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;

writeFileSync(join(this.outputPath,file), fileContent);
})
Expand Down
2 changes: 1 addition & 1 deletion lib/item-include-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = class ItemIncludePosts extends BroccoliPlugin {
const newFile = join(this.outputPath, `${itemId}.md`);

const fileContent = `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;

writeFileSync(newFile, fileContent);
});
Expand Down
Loading

0 comments on commit 8ed810c

Please sign in to comment.