cmark

My personal build of CMark ✏️

Commit
1640365a8ba0c414e03922796dd5a0ed0e600bda
Parent
711a42275a4f13cfafa771aeffa6771e0a904e91
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed redundant condition.

Diffstat

1 file changed, 1 insertion, 7 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 8 1 7
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -519,16 +519,10 @@ var incorporateLine = function(ln, line_number) {
                 this.addLine(ln, first_nonspace);
             } else if (blank) {
                 break;
-            } else if (container.t !== 'HorizontalRule' &&
-                       container.t !== 'Header') {
+            } else {
                 // create paragraph container for line
                 container = this.addChild('Paragraph', line_number, first_nonspace);
                 this.addLine(ln, first_nonspace);
-            } else {
-                console.log("Line " + line_number.toString() +
-                            " with container type " + container.t +
-                            " did not match any condition.");
-
             }
         }
     }