diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 01fdbac96..f82ec3c32 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -344,8 +344,8 @@ const definitionListsMultiline = { } if(match[2]) { definitions[definitions.length - 1].dds.push( - this.lexer.inlineTokens(match[2].trim().replace(/\s/g,' ')) - ) + this.lexer.inlineTokens(match[2].trim().replace(/\s/g, ' ')) + ); } endIndex = regex.lastIndex; } @@ -360,7 +360,7 @@ const definitionListsMultiline = { renderer(token) { let returnVal = `
`; token.definitions.forEach((def)=>{ - let dds = def.dds.map((s)=>{ + const dds = def.dds.map((s)=>{ return `\n
${this.parser.parseInline(s).trim()}
`; }).join(''); returnVal += `
${this.parser.parseInline(def.dt)}
${dds}\n`;