cmark

My personal build of CMark ✏️

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

Check for blank line before checking indent in Item.

Diffstat

1 file changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 6 3 3
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -286,12 +286,12 @@ var incorporateLine = function(ln) {
             break;
 
         case 'Item':
-            if (indent >= container._listData.markerOffset +
+            if (blank) {
+                offset = first_nonspace;
+            } else if (indent >= container._listData.markerOffset +
                 container._listData.padding) {
                 offset += container._listData.markerOffset +
                     container._listData.padding;
-            } else if (blank) {
-                offset = first_nonspace;
             } else {
                 all_matched = false;
             }