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