diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 114229887..900475986 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -218,8 +218,9 @@ const definitionLists = { while (match = regex.exec(src)) { definitions.push({ dt : this.lexer.inlineTokens(match[1].trim()), - dd : this.lexer.inlineTokens(match[2].trim()) + dd : match[2].split('::').map((s)=>this.lexer.inlineTokens(s.trim())) }); + console.log(match.splice(2).map((s)=>s.trim())); endIndex = regex.lastIndex; } if(definitions.length) { @@ -232,8 +233,9 @@ const definitionLists = { }, renderer(token) { return `