FIX: Upstream markdown-js fix for quotes inside lists.

This commit is contained in:
Robin Ward 2014-01-21 14:34:34 -05:00
parent 3618e8b527
commit d867fb62e4
1 changed files with 6 additions and 1 deletions

View File

@ -1005,7 +1005,12 @@
} // tight_search
if ( li_accumulate.length ) {
add( last_li, loose, this.processInline( li_accumulate ), nl );
var contents = this.processBlock(li_accumulate, []),
firstBlock = contents[0];
firstBlock.shift();
contents.splice.apply(contents, [0, 1].concat(firstBlock));
add( last_li, loose, contents, nl );
// Let's not creating a trailing \n after content in the li
if(last_li[last_li.length-1] === "\n") {