cmark

My personal build of CMark ✏️

Commit
16d7d3df1cbf0880416d2eaa610d72bb06f5da56
Parent
39537f3f2a5969f607f5efc8b77668248adf38f3
Author
John MacFarlane <jgm@berkeley.edu>
Date

Slightly more efficient test for lazy continuation.

Diffstat

1 file changed, 1 insertion, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 3 1 2
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -481,8 +481,7 @@ var incorporateLine = function(ln) {
     indent = first_nonspace - offset;
 
     // First check for a lazy paragraph continuation:
-    if (this.tip !== this.lastMatchedContainer &&
-        !blank &&
+    if (!allClosed && !blank &&
         this.tip.t === 'Paragraph' &&
         this.tip.strings.length > 0) {
         // lazy paragraph continuation