diff --git a/lib/marked.js b/lib/marked.js index 307d068d..7becd0c6 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -49,7 +49,7 @@ block.lexer = function(str) { .replace(/\t/g, ' '); // experimental - //str = str.replace(/^ +$/gm, ''); + // str = str.replace(/^ +$/gm, ''); // grab link definitons str = str.replace( @@ -128,13 +128,9 @@ block.token = function(str, tokens) { }); // get each top-level // item in the list - console.log('first'); - console.log(cap[0]); - console.log('end'); cap = cap[0].match( /^( *)(\*|\+|-|\d+\.)[^\n]+(?:\n\1+(?!\*|\+|-|\d\.)[^\n]*)*/gm - ); - console.log(cap); + ); each(cap, function(item) { // remove the list items sigil // so its seen as the next token