diff --git a/lib/marked.js b/lib/marked.js index 1d8f815f..3384c6af 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -145,11 +145,9 @@ block.token = function(str, tokens) { item = item.replace(space, ''); } tokens.push({ - type: 'list_item_start', - loose: loose - //loose - //? 'loose_item_start' - //: 'list_item_start' + type: loose + ? 'loose_item_start' + : 'list_item_start' }); block.token(item, tokens); tokens.push({ @@ -398,21 +396,21 @@ var tok = function() { case 'list_item_start': var body = []; while (next().type !== 'list_item_end') { - body.push(token.type === 'text' && !token.loose + body.push(token.type === 'text' ? inline.lexer(token.text) : tok()); } return '
  • ' + body.join(' ') + '
  • '; - /*case 'loose_item_start': + case 'loose_item_start': var body = []; while (next().type !== 'list_item_end') { body.push(tok()); } return '
  • ' + body.join(' ') - + '
  • ';*/ + + ''; case 'html': return inline.lexer(token.text); case 'text':