From 6e201b744581bb080dad8dfe40247f73688ede2d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 21 Jan 2015 09:31:59 -0800 Subject: Adjust lastLineLength before returning after close fence. --- js/lib/blocks.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js') diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 257b991..57aba3d 100644 --- 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 -- cgit v1.2.3