File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ var blocks = {
325
325
ln . slice ( parser . nextNonspace ) . match ( reClosingCodeFence ) ) ;
326
326
if ( match && match [ 0 ] . length >= container . _fenceLength ) {
327
327
// closing fence - we're at end of line, so we can return
328
+ parser . lastLineLength = match [ 0 ] . length ;
328
329
parser . finalize ( container , parser . lineNumber ) ;
329
330
return 2 ;
330
331
} else {
@@ -673,7 +674,6 @@ var incorporateLine = function(ln) {
673
674
all_matched = false ;
674
675
break ;
675
676
case 2 : // we've hit end of line for fenced code close and can return
676
- this . lastLineLength = ln . length ;
677
677
return ;
678
678
default :
679
679
throw 'continue returned illegal value, must be 0, 1, or 2' ;
@@ -769,6 +769,7 @@ var incorporateLine = function(ln) {
769
769
container . _htmlBlockType >= 1 &&
770
770
container . _htmlBlockType <= 5 &&
771
771
reHtmlBlockClose [ container . _htmlBlockType ] . test ( this . currentLine . slice ( this . offset ) ) ) {
772
+ this . lastLineLength = ln . length ;
772
773
this . finalize ( container , this . lineNumber ) ;
773
774
}
774
775
You can’t perform that action at this time.
0 commit comments