diff --git a/shared/homebrewery/markdown.new.js b/shared/homebrewery/markdown.new.js index a155e2350..a990d15a4 100644 --- a/shared/homebrewery/markdown.new.js +++ b/shared/homebrewery/markdown.new.js @@ -25,7 +25,7 @@ module.exports = { render : (rawBrewText)=>{ //Adds in the new div block syntax let count = 0; - let blockReg = /{{\w+|}}/g; + let blockReg = /{{[\w|,]+|}}/g; const renderer = new Markdown.Renderer(); renderer.paragraph = function (text) { const matches = text.match(blockReg); @@ -35,7 +35,7 @@ module.exports = { if(text) r.push(`

${text}

\n`); const block = matches[matchIndex]; if(block && _.startsWith(block, '{{')){ - r.push(`
`); + r.push(`
`); count++; } if(block == '}}' && count !== 0){