This commit is contained in:
Christopher Jeffrey 2011-08-20 08:11:49 -05:00
parent 321dc2291f
commit f4b6ef4b10

View File

@ -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