diff --git a/lib/marked.js b/lib/marked.js index c2950f26..92b9a154 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -41,12 +41,9 @@ block.lexer = function(str) { var tokens = [] , links = {}; - // normalize whitespace - str = str.replace(/\r\n/g, '\n') - .replace(/\r/g, '\n') + str = str.replace(/\r\n|\r/g, '\n') .replace(/\t/g, ' '); - // grab link definitons str = str.replace( /^ {0,3}\[([^\]]+)\]: *([^ ]+)(?: +"([^\n]+)")? *$/gm, function(__, id, href, title) {