cmark

My personal build of CMark ✏️

Commit
c5da0cc4f84211ebefc189771deabfec9e9eb8ed
Parent
d81bb6a0598357cd56f3bc3d43eb8d7ccf0437a9
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed a check in addLine.

Diffstat

1 file changed, 0 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 3 0 3
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -143,9 +143,6 @@ var breakOutOfLists = function(block) {
 // Add a line to the block at the tip.  We assume the tip
 // can accept lines -- that check should be done before calling this.
 var addLine = function(ln) {
-    if (!(this.tip._open)) {
-        throw { msg: "Attempted to add line (" + ln + ") to closed container." };
-    }
     this.tip._strings.push(ln.slice(this.offset));
 };