cmark

My personal build of CMark ✏️

Commit
625c93769b81938781ba19450b15debd4ef7e396
Parent
6e201b744581bb080dad8dfe40247f73688ede2d
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed unnecessary check.

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 4 2 2
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -496,18 +496,18 @@ var incorporateLine = function(ln) {
 
         // finalize any blocks not matched
         allClosed = allClosed || this.closeUnmatchedBlocks();
-        t = container.type;
         if (blank && container.lastChild) {
             container.lastChild._lastLineBlank = true;
         }
 
+        t = container.type;
+
         // Block quote lines are never blank as they start with >
         // and we don't count blanks in fenced code for purposes of tight/loose
         // lists or breaking out of lists.  We also don't set _lastLineBlank
         // on an empty list item, or if we just closed a fenced block.
         container._lastLineBlank = blank &&
             !(t === 'BlockQuote' ||
-              t === 'Header' ||
               (t === 'CodeBlock' && container._isFenced) ||
               (t === 'Item' &&
                !container._firstChild &&