mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: Upstream markdown-js fix for quotes inside lists.
This commit is contained in:
+6
-1
@@ -1005,7 +1005,12 @@
|
|||||||
} // tight_search
|
} // tight_search
|
||||||
|
|
||||||
if ( li_accumulate.length ) {
|
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
|
// Let's not creating a trailing \n after content in the li
|
||||||
if(last_li[last_li.length-1] === "\n") {
|
if(last_li[last_li.length-1] === "\n") {
|
||||||
|
|||||||
Reference in New Issue
Block a user