Fix some issues in README

This commit is contained in:
Angelos Chalaris
2019-02-02 13:54:37 +02:00
parent 5838a99c4b
commit c867018fc3
3 changed files with 7 additions and 9 deletions

View File

@ -78,7 +78,7 @@ try {
const taggedSnippets = snippetsInTag[tag];
taggedSnippets.forEach(snippet => {
output += headers.h3(snippet.title).trim();
output += `\n\n${snippet.text}${snippet.codeBlocks.slice(0,-1)}`;
output += `\n\n${snippet.text}${snippet.codeBlocks.slice(0,-1).join('\n\n')}`;
if (snippet.notes && snippet.notes.length) {
output += headers.h4('Notes');
output += `\n${snippet.notes}`;