|
@@ -855,7 +855,7 @@ var _DoLists = function(text) {
|
|
|
|
|
|
|
|
// Turn double returns into triple returns, so that we can make a
|
|
// Turn double returns into triple returns, so that we can make a
|
|
|
// paragraph for the last item in a list, if necessary:
|
|
// paragraph for the last item in a list, if necessary:
|
|
|
- list = list.replace(/\n{2,}/g,"\n\n\n");;
|
|
|
|
|
|
|
+ list = list.replace(/\n{2,}/g,"\n\n\n");
|
|
|
var result = _ProcessListItems(list);
|
|
var result = _ProcessListItems(list);
|
|
|
|
|
|
|
|
// Trim any trailing whitespace, to put the closing `</$list_type>`
|
|
// Trim any trailing whitespace, to put the closing `</$list_type>`
|
|
@@ -875,7 +875,7 @@ var _DoLists = function(text) {
|
|
|
var list_type = (m3.search(/[*+-]/g)>-1) ? "ul" : "ol";
|
|
var list_type = (m3.search(/[*+-]/g)>-1) ? "ul" : "ol";
|
|
|
// Turn double returns into triple returns, so that we can make a
|
|
// Turn double returns into triple returns, so that we can make a
|
|
|
// paragraph for the last item in a list, if necessary:
|
|
// paragraph for the last item in a list, if necessary:
|
|
|
- var list = list.replace(/\n{2,}/g,"\n\n\n");;
|
|
|
|
|
|
|
+ list = list.replace(/\n{2,}/g,"\n\n\n");
|
|
|
var result = _ProcessListItems(list);
|
|
var result = _ProcessListItems(list);
|
|
|
result = runup + "<"+list_type+">\n" + result + "</"+list_type+">\n";
|
|
result = runup + "<"+list_type+">\n" + result + "</"+list_type+">\n";
|
|
|
return result;
|
|
return result;
|
|
@@ -1451,4 +1451,4 @@ if (typeof define === 'function' && define.amd) {
|
|
|
define(function() {
|
|
define(function() {
|
|
|
return Showdown;
|
|
return Showdown;
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
|
|
+}
|