cmark

My personal build of CMark ✏️

Commit
c9994effcff67d4fddab23c2364218a09e807768
Parent
33626b1d0e2e8bda1c29b3f310ba4c7a07de0495
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed unnecessary setting of default tight=true in finalize.

We do that when the listData object is initialized.

Diffstat

1 file changed, 1 insertion, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 4 1 3
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -174,7 +174,7 @@ var parseListMarker = function(ln, offset, indent) {
     var match;
     var spaces_after_marker;
     var data = { type: null,
-                 tight: true,
+                 tight: true,  // lists are tight by default
                  bulletChar: null,
                  start: null,
                  delimiter: null,
@@ -617,8 +617,6 @@ var finalize = function(block, lineNumber) {
         break;
 
     case 'List':
-        block._listData.tight = true; // tight by default
-
         var item = block._firstChild;
         while (item) {
             // check for non-final list item ending with blank line: