-debug
This commit is contained in:
parent
321dc2291f
commit
f4b6ef4b10
@ -49,7 +49,7 @@ block.lexer = function(str) {
|
|||||||
.replace(/\t/g, ' ');
|
.replace(/\t/g, ' ');
|
||||||
|
|
||||||
// experimental
|
// experimental
|
||||||
//str = str.replace(/^ +$/gm, '');
|
// str = str.replace(/^ +$/gm, '');
|
||||||
|
|
||||||
// grab link definitons
|
// grab link definitons
|
||||||
str = str.replace(
|
str = str.replace(
|
||||||
@ -128,13 +128,9 @@ block.token = function(str, tokens) {
|
|||||||
});
|
});
|
||||||
// get each top-level
|
// get each top-level
|
||||||
// item in the list
|
// item in the list
|
||||||
console.log('first');
|
|
||||||
console.log(cap[0]);
|
|
||||||
console.log('end');
|
|
||||||
cap = cap[0].match(
|
cap = cap[0].match(
|
||||||
/^( *)(\*|\+|-|\d+\.)[^\n]+(?:\n\1+(?!\*|\+|-|\d\.)[^\n]*)*/gm
|
/^( *)(\*|\+|-|\d+\.)[^\n]+(?:\n\1+(?!\*|\+|-|\d\.)[^\n]*)*/gm
|
||||||
);
|
);
|
||||||
console.log(cap);
|
|
||||||
each(cap, function(item) {
|
each(cap, function(item) {
|
||||||
// remove the list items sigil
|
// remove the list items sigil
|
||||||
// so its seen as the next token
|
// so its seen as the next token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user