mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
FIX: Upstream markdown-js fix for quotes inside lists.
This commit is contained in:
parent
3618e8b527
commit
d867fb62e4
7
vendor/assets/javascripts/better_markdown.js
vendored
7
vendor/assets/javascripts/better_markdown.js
vendored
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user