From d867fb62e49ea9a792e5ce8d69097103826f8a6b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 21 Jan 2014 14:34:34 -0500 Subject: [PATCH] FIX: Upstream markdown-js fix for quotes inside lists. --- vendor/assets/javascripts/better_markdown.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/better_markdown.js b/vendor/assets/javascripts/better_markdown.js index 8e4e742e4f9..d8e702cdfbd 100644 --- a/vendor/assets/javascripts/better_markdown.js +++ b/vendor/assets/javascripts/better_markdown.js @@ -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") {