diff --git a/shared/homebrewery/markdown.new.js b/shared/homebrewery/markdown.new.js index a990d15..14a484d 100644 --- a/shared/homebrewery/markdown.new.js +++ b/shared/homebrewery/markdown.new.js @@ -29,17 +29,17 @@ module.exports = { const renderer = new Markdown.Renderer(); renderer.paragraph = function (text) { const matches = text.match(blockReg); - if(!matches) return `
${text}
\n`; + if(!matches) return `\n${text}
\n`; let matchIndex = 0; const res = _.reduce(text.split(blockReg), (r, text) => { - if(text) r.push(`${text}
\n`); + if(text) r.push(`\n${text}
\n`); const block = matches[matchIndex]; if(block && _.startsWith(block, '{{')){ - r.push(`