Merge pull request #4 from yuzu-emu/CaptV0rt3x-patch-1

Fix decoded ampersands
This commit is contained in:
Vamsi Krishna 2021-06-29 09:42:53 +05:30 committed by GitHub
commit 6607aac2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,9 @@ fs.readdir(inputDirectory, (err, items) => {
return `[${p1}](${url(p1)})`;
});
// Replace decoded & -> &
cleanData = cleanData.replace(/&/g, "&");
// Create the new markdown header for Hugo.
const newFileContents = `+++\r\ntitle = "${title}"\r\ndate = "${modified.toISOString()}"\r\n+++\r\n\r\n${cleanData}\r\n`;