Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Nov 16, 2015
1 parent 76bddd4 commit 16c9a43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,10 @@ Lexer.prototype.token = function(src, top, bq) {

// Determine whether the next list item belongs here.
// Backpedal if it does not belong in this list.
if (this.options.smartLists && i !== l - 1) {
if (i !== l - 1) {
b = block.bullet.exec(cap[i + 1])[0];
if (bull !== b && !(bull.length > 1 && b.length > 1)) {
if (bull.length > 1 ? b.length == 1
: (b.length > 1 || (this.options.smartLists && b !== bull))) {
src = cap.slice(i + 1).join('\n') + src;
i = l - 1;
}
Expand Down

0 comments on commit 16c9a43

Please sign in to comment.