cmark

My personal build of CMark ✏️

Commit
c9bd3cbb3fbab9e9e3b3aa928f317508fafa8012
Parent
56b934526e9fdfdf26adc40f57b7edb885d54e5c
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #292 from robinst/top-property-access

Remove read of "top" property (always undefined)

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 2 1 1
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -552,7 +552,7 @@ var incorporateLine = function(ln) {
 // parent of the closed block.
 var finalize = function(block, lineNumber) {
     var pos;
-    var above = block._parent || this.top;
+    var above = block._parent;
     // don't do anything if the block is already closed
     if (!block._open) {
         return 0;