|
@@ -2351,7 +2351,10 @@ showdown.subParser('paragraphs', function (text, options, globals) {
|
|
|
// if this is an HTML marker, copy it
|
|
|
if (str.search(/¨(K|G)(\d+)\1/g) >= 0) {
|
|
|
grafsOut.push(str);
|
|
|
- } else {
|
|
|
+
|
|
|
+ // test for presence of characters to prevent empty lines being parsed
|
|
|
+ // as paragraphs (resulting in undesired extra empty paragraphs)
|
|
|
+ } else if (str.search(/\S/) >= 0) {
|
|
|
str = showdown.subParser('spanGamut')(str, options, globals);
|
|
|
str = str.replace(/^([ \t]*)/g, '<p>');
|
|
|
str += '</p>';
|