Skip to content

Commit 8316a93

Browse files
committed
clean up code
1 parent c8521e5 commit 8316a93

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/marked.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ Lexer.prototype.token = function(src, top) {
200200
l,
201201
isordered,
202202
istask,
203-
ischecked;
203+
ischecked,
204+
blockquote,
205+
count;
204206

205207
while (src) {
206208
// newline
@@ -299,8 +301,8 @@ Lexer.prototype.token = function(src, top) {
299301
type: 'blockquote_start'
300302
});
301303

302-
var blockquote = cap[0].replace(/^ *> ?/gm, '');
303-
var count = 1;
304+
blockquote = cap[0].replace(/^ *> ?/gm, '');
305+
count = 1;
304306
while (blockquote.match(/^ {0,3}>/)) {
305307
count++;
306308
this.tokens.push({

0 commit comments

Comments
 (0)