revert
This commit is contained in:
parent
716e08f9c5
commit
7289385c60
@ -145,11 +145,9 @@ block.token = function(str, tokens) {
|
||||
item = item.replace(space, '');
|
||||
}
|
||||
tokens.push({
|
||||
type: 'list_item_start',
|
||||
loose: loose
|
||||
//loose
|
||||
//? 'loose_item_start'
|
||||
//: 'list_item_start'
|
||||
type: loose
|
||||
? 'loose_item_start'
|
||||
: 'list_item_start'
|
||||
});
|
||||
block.token(item, tokens);
|
||||
tokens.push({
|
||||
@ -398,21 +396,21 @@ var tok = function() {
|
||||
case 'list_item_start':
|
||||
var body = [];
|
||||
while (next().type !== 'list_item_end') {
|
||||
body.push(token.type === 'text' && !token.loose
|
||||
body.push(token.type === 'text'
|
||||
? inline.lexer(token.text)
|
||||
: tok());
|
||||
}
|
||||
return '<li>'
|
||||
+ body.join(' ')
|
||||
+ '</li>';
|
||||
/*case 'loose_item_start':
|
||||
case 'loose_item_start':
|
||||
var body = [];
|
||||
while (next().type !== 'list_item_end') {
|
||||
body.push(tok());
|
||||
}
|
||||
return '<li>'
|
||||
+ body.join(' ')
|
||||
+ '</li>';*/
|
||||
+ '</li>';
|
||||
case 'html':
|
||||
return inline.lexer(token.text);
|
||||
case 'text':
|
||||
|
Loading…
x
Reference in New Issue
Block a user