clean up code
This commit is contained in:
parent
c8521e51e1
commit
8316a936cd
@ -200,7 +200,9 @@ Lexer.prototype.token = function(src, top) {
|
|||||||
l,
|
l,
|
||||||
isordered,
|
isordered,
|
||||||
istask,
|
istask,
|
||||||
ischecked;
|
ischecked,
|
||||||
|
blockquote,
|
||||||
|
count;
|
||||||
|
|
||||||
while (src) {
|
while (src) {
|
||||||
// newline
|
// newline
|
||||||
@ -299,8 +301,8 @@ Lexer.prototype.token = function(src, top) {
|
|||||||
type: 'blockquote_start'
|
type: 'blockquote_start'
|
||||||
});
|
});
|
||||||
|
|
||||||
var blockquote = cap[0].replace(/^ *> ?/gm, '');
|
blockquote = cap[0].replace(/^ *> ?/gm, '');
|
||||||
var count = 1;
|
count = 1;
|
||||||
while (blockquote.match(/^ {0,3}>/)) {
|
while (blockquote.match(/^ {0,3}>/)) {
|
||||||
count++;
|
count++;
|
||||||
this.tokens.push({
|
this.tokens.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user