diff --git a/scripts/build.js b/scripts/build.js index 686b742b8..95467df09 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -206,12 +206,12 @@ try { snippet.slice(snippet.lastIndexOf('```')) ); - output += snippet + '\n
' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; + output += `${snippet}\n
${misc.link('⬆ Back to top', misc.anchor('Table of Contents'))}\n\n`; } } // Add the ending static part - output += `\n${endPart + '\n'}`; + output += `\n${endPart}\n`; // Write to the README file fs.writeFileSync('README.md', output); } catch (err) {