cmark

My personal build of CMark ✏️

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

Adjust lastLineLength before returning after close fence.

Diffstat

1 file changed, 1 insertion, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 1 1 0
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -307,6 +307,7 @@ var incorporateLine = function(ln) {
                     // closing fence - we're at end of line, so we can return
                     all_matched = false;
                     this.finalize(container, this.lineNumber);
+                    this.lastLineLength = ln.length - 1; // -1 for newline
                     return;
                 } else {
                     // skip optional spaces of fence offset